I have a service Like this
PersonDto GetPerson(GetPersonInput input);
GetPersonInput is a DTO that only have an id (int)
public class GetPersonInput : IInputDto
{
public int id {get; set;}
}
and my angular code is like this
personService.getPerson(
{
id : $scope.pId
}
)
.success(function (data) {
//some code
})
There is no problem in this case but when i change my service like this
PersonDto GetPerson(int id);
i get an error that 'id' is not passed !
Is it necessary to use InputDto in the services?
How Can I define a new MenuDefinition in addition to MainMenu? I want to create a separate menu in sidebar
In my NavigationProvider i create it by this code
context.Manager.Menus.Add("SideBarMenu",
new MenuDefinition(
"SideBarMenu",
new LocalizableString("SideBaeMenu", EPEDCConsts.LocalizationSourceName))
);
but i can't use it and add MenuItems!
Thank you, but how can I add items to my "SideBarMenu" ?
Can I Show a progressbar when views change?
Can We Use ngProgress ? How?
I add Some code in header.js and it works !
$rootScope.$on('$routeChangeStart', function() {
ngProgress.start();
});
$rootScope.$on('$routeChangeSuccess', function() {
ngProgress.complete();
});
I use this function to remove roles, why user roles remain ?
public async Task DeleteRolesAsync(List<string> deleteList, long userId)
{
foreach (var roleName in deleteList)
{
IdentityResult deletionResult = await _userManager.RemoveFromRoleAsync(userId, roleName);
}
}
<cite>hikalkan: </cite> Can you open an issue for that on github (<a class="postlink" href="https://github.com/aspnetboilerplate/module-zero/issues/new">https://github.com/aspnetboilerplate/mo ... issues/new</a>)? You may use SetRoles method for now.
Thank You SetRoles works Great !
How can I config Identity with "ApplicationUserManager" and customize "UserValidator" and "PasswordValidator" and ...?
You are right , but "UserValidator" is not in override methods,
How can I override it?