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()))); } }
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()))); } }