Esempio n. 1
0
 public IHttpActionResult CopyRights(UserRights_VM Record)
 {
     try
     {
         using (UserRightService obj = new UserRightService())
             return(Ok(obj.CopyRights(Record)));
     }
     catch (Exception Ex)
     {
         return(ResponseMessage(Request.CreateErrorResponse(HttpStatusCode.BadRequest, Ex.Message.ToString())));
     }
 }
Esempio n. 2
0
 public IHttpActionResult RightsList(Dictionary <string, object> SearchData)
 {
     try
     {
         using (UserRightService obj = new UserRightService())
             return(Ok(obj.RightsList(SearchData)));
     }
     catch (Exception Ex)
     {
         return(ResponseMessage(Request.CreateErrorResponse(HttpStatusCode.BadRequest, Ex.Message.ToString())));
     }
 }