Exemple #1
0
 public OutPutDTO addRole(UserRoleDTO obj)
 {
     try
     {
         if (userBusiness.AddRole(obj.UserID, obj.Selection))
         {
             return(new OutPutDTO(true, Constants.STATUS_CODE.SUCCESS, Constants.STATUS_MESSAGE.SUCCESS, null));
         }
         else
         {
             return(new OutPutDTO(false, Constants.STATUS_CODE.FAILURE, Constants.STATUS_MESSAGE.FAILURE, null));
         }
     }
     catch (Exception ex)
     {
         return(new OutPutDTO(false, Constants.STATUS_CODE.EXCEPTION, Constants.STATUS_MESSAGE.EXCEPTION + ex.Message, null));
     }
 }