public IdentityRole GetModel(IdentityRoleDto role) { return(new IdentityRole { Id = role.Id, Name = role.RoleName }); }
public async Task <IHttpActionResult> PutRole(string id, IdentityRoleDto role) { if (id != role.Id) { CustomException.ThrowBadRequestException($"Id: {id} doesn't match."); } return(Ok(await RoleService.Update(role))); }
protected override string GetDeleteConfirmationMessage(IdentityRoleDto entity) { return(string.Format(L["RoleDeletionConfirmationMessage"], entity.Name)); }