コード例 #1
0
 public IdentityRole GetModel(IdentityRoleDto role)
 {
     return(new IdentityRole
     {
         Id = role.Id,
         Name = role.RoleName
     });
 }
コード例 #2
0
        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)));
        }
コード例 #3
0
 protected override string GetDeleteConfirmationMessage(IdentityRoleDto entity)
 {
     return(string.Format(L["RoleDeletionConfirmationMessage"], entity.Name));
 }