コード例 #1
0
 /// <summary>
 /// Deletes the Role specified by id
 /// <para>Returns ApplicationRoleDTOModel</para>
 /// </summary>
 /// /// <param name="id">string</param>
 /// <returns>ApplicationRoleDTOModel</returns>
 public ApplicationRoleDTOModel DeleteRoleByID(string id)
 {
     try
     {
         return(new ApplicationRoleDTOModel
         {
             Item = _repository.DeleteRoleByID(id),
         });
     }
     catch (Exception e)
     {
         LogWarning(e.Message);
         return(new ApplicationRoleDTOModel
         {
             ErrorMessage = e.Message,
         });
     }
 }