Hello
i want to navigate from 1 cshtml page to another inside app/tenant/view/store/page1.cshtml to app/tenant/views/store/page2.cshtml from a href tag
can you please show me how it is done
regards Anwar
Assalam alaikom
Do you have a sample or document which shows how to enable Security as my site has payment gateway involved. Also customer data needs to be secured while accessed .
Regards Anwar
Hello ,
i have the following directivesm i need to access from the AboutUs.cshtm page , can you please tell me how to do it.
Regard Anwar
(function (app) { 'use strict';
app.directive('componentRating', componentRating);
function componentRating() {
return {
restrict: 'A',
link: function ($scope, $element, $attrs) {
$element.raty({
score: $attrs.componentRating,
halfShow: false,
readOnly: $scope.isReadOnly,
noRatedMsg: "Not rated yet!",
starHalf: "../Common/Images/raty/star-half.png",
starOff: "../Common/Images/raty/star-off.png",
starOn: "../Common/Images/raty/raty/star-on.png",
hints: ["Poor", "Average", "Good", "Very Good", "Excellent"],
click: function (score, event) {
//Set the model value
$scope.vm.courseeducators.educatorId = score;
$scope.$apply();
}
});
}
}
}
});
Hello
is there a sample mobile app that shows how we can access the as.net zero functions from it or is there a template that can be used to generate a mobile app like SPA
regards Anwar
Hl
i created an angular project and ran the coe and angular seperately it loads allows login and all but when i click on user it shows the following error, can you please help me i am struggling from 5 days with this.
Also from swagger when i call it tryout it shows
Request URL
http://localhost:22742/api/services/app/User/GetUsers
Response Body
no content
Response Code
404
Response Headers
{
"server": "Kestrel",
"x-sourcefiles": "=?UTF-8?B?RTpcRFhCVGVzdFxhc3BuZXQtY29yZVxzcmNcRFhCQUlTUy5EWEJUZXN0LldlYi5Ib3N0XEFjY291bnRcTG9naW4=?=",
"x-powered-by": "ASP.NET",
"date": "Tue, 18 Jul 2017 15:29:24 GMT",
"content-length": "0",
"": "",
"content-type": null
}
Hello George,
I have done 2 projects on this i can assist you in developing the same. Please contact me at talk_to_anwar my skype id and avanekar02@gmal.,com
Regards Anwar
Please respond to this, appreciate a response please
Regards Anwar
using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using Abp.Domain.Repositories;
using System.Linq;
using ACMEPROJECT.Authorization.Roles;
using ACMEPROJECT.Roles.Dto;
using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore;
using Abp.IdentityFramework;
using ACMEPROJECT.Authorization.Users;
using ACMEPROJECT.Authorization;
using Abp.UI;
namespace ACMEPROJECT.Roles
{
public class RoleAppService : AsyncCrudAppService<Role, RoleDto, int, PagedResultRequestDto, CreateRoleDto, RoleDto>, IRoleAppService
{
private readonly RoleManager _roleManager;
private readonly UserManager _userManager;
public RoleAppService(IRepository<Role> repository, RoleManager roleManager, UserManager userManager)
: base(repository)
{
_roleManager = roleManager;
_userManager = userManager;
CreatePermissionName
= GetAllPermissionName
= GetPermissionName
= UpdatePermissionName
= DeletePermissionName
= PermissionNames.Pages_Roles;
}
public override async Task<RoleDto> Create(CreateRoleDto input)
{
CheckCreatePermission();
var role = ObjectMapper.Map<Role>(input);
role.SetNormalizedName();
CheckErrors(await _roleManager.CreateAsync(role));
var grantedPermissions = PermissionManager
.GetAllPermissions()
.Where(p => input.Permissions.Contains(p.Name))
.ToList();
await _roleManager.SetGrantedPermissionsAsync(role, grantedPermissions);
return MapToEntityDto(role);
}
public override async Task<RoleDto> Update(RoleDto input)
{
CheckUpdatePermission();
var role = await _roleManager.GetRoleByIdAsync(input.Id);
ObjectMapper.Map(input, role);
CheckErrors(await _roleManager.UpdateAsync(role));
var grantedPermissions = PermissionManager
.GetAllPermissions()
.Where(p => input.Permissions.Contains(p.Name))
.ToList();
await _roleManager.SetGrantedPermissionsAsync(role, grantedPermissions);
return MapToEntityDto(role);
}
public override async Task Delete(EntityDto<int> input)
{
CheckDeletePermission();
var role = await _roleManager.FindByIdAsync(input.Id.ToString());
if (role.IsStatic)
{
throw new UserFriendlyException("CannotDeleteAStaticRole");
}
var users = await _userManager.GetUsersInRoleAsync(role.NormalizedName);
foreach (var user in users)
{
CheckErrors(await _userManager.RemoveFromRoleAsync(user, role.NormalizedName));
}
CheckErrors(await _roleManager.DeleteAsync(role));
}
public Task<ListResultDto<PermissionDto>> GetAllPermissions()
{
var permissions = PermissionManager.GetAllPermissions();
return Task.FromResult(new ListResultDto<PermissionDto>(
ObjectMapper.Map<List<PermissionDto>>(permissions)
));
}
protected override IQueryable<Role> CreateFilteredQuery(PagedResultRequestDto input)
{
return Repository.GetAllIncluding(x => x.Permissions);
}
protected override async Task<Role> GetEntityByIdAsync(int id)
{
return await Repository.GetAllIncluding(x => x.Permissions).FirstOrDefaultAsync(x => x.Id == id);
}
protected override IQueryable<Role> ApplySorting(IQueryable<Role> query, PagedResultRequestDto input)
{
return query.OrderBy(r => r.DisplayName);
}
protected virtual void CheckErrors(IdentityResult identityResult)
{
identityResult.CheckErrors(LocalizationManager);
}
}
}
Any link i give it throws the internal server error, i clicked on roles it throws same error.
Regards Anwar