Base solution for your next web application

Activities of "ismcagdas"

Hi,

I suggest you to not call an app service from another app service first :), because it's a bad practice.

I assume that, you have defined an entity with name "BlockedPermission", added it to your dbcontext, generate required migration and update the database.

Then, you can directly use IRepository<BlockedPermission> in the roleAppService. Just inject this into roleAppService like this.

private readonly RoleManager _roleManager;
private readonly IRepository<BlockedPermission> _blockedPermissionsRepository;

public RoleAppService(RoleManager roleManager, 
	IRepository<BlockedPermission> blockedPermissionsRepository)
{
	_roleManager = roleManager;
	_blockedPermissionsRepository = blockedPermissionsRepository;
}

Then in your app service, just get data using _blockedPermissionsRepository .

Hi,

Did you update jquery nuget packages ? Because, it seems those files are not currently in the project file.

<a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/a5d5a408b9a917d35726b50e7388c6a9ca558e46/src/MyCompanyName.AbpZeroTemplate.Web/MyCompanyName.AbpZeroTemplate.Web.csproj">https://github.com/aspnetzero/aspnet-ze ... Web.csproj</a>

Hi,

You can use savechanges of current unit of work if your code runs in an app service or abp controller.

CurrentUnitOfWork.SaveChanges();

Hi,

Where do you call your final code lines ?

var blockedPermissionsAppService = new BlockedPermissionsAppService(new BlockedPermissionsRepository());
var lst = blockedPermissionsAppService.GetList();

is it in an mvc controller ?

Hi drenton,

You are invited on github. You can check this issue for the solution <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/issues/46">https://github.com/aspnetzero/aspnet-zero/issues/46</a>.

Answer

Hi,

You dont have to duplicate your modals. Just give their full path to modal manager.

See below example;

new app.ModalManager({
	viewUrl: abp.appPath + 'Mpa/OrganizationUnits/CreateModal',
	scriptUrl: abp.appPath + 'Areas/Mpa/Views/OrganizationUnits/_CreateModal.js',
	modalClass: 'CreateOrganizationUnitModal'
});

Hi,

As far as I know, most people do it manually by hand.

I'm sure that there are tools for bootstrap layout design, but it's hard to find one for metronic. Since metronic is based on bootstrap layout, such tools might give you a starting point for your screen layout. I found this one for example <a class="postlink" href="http://www.layoutit.com/build">http://www.layoutit.com/build</a>.

For my opinion, it's better to learn bootstrap and do the pages by hand.

Hi,

Please follow the discussion here <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/980">https://github.com/aspnetboilerplate/as ... issues/980</a>

Hi,

It's in the RoleAppService application service's GetRoleForEdit method. See it here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/7773db5b26cdb3d4dc6ece9be17a4c41ee6d5a4d/src/MyCompanyName.AbpZeroTemplate.Application/Authorization/Roles/RoleAppService.cs">https://github.com/aspnetzero/aspnet-ze ... Service.cs</a>

var permissions = PermissionManager.GetAllPermissions();

Hi,

We are actually working on similar issues,

<a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/936">https://github.com/aspnetboilerplate/as ... issues/936</a> <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/issues/170">https://github.com/aspnetzero/aspnet-zero/issues/170</a>.

It will be in the next release ABP & Zero as well.

Showing 12541 to 12550 of 12626 entries