public object SubmitGrievance([FromBody] ParamSaveGriveance objparam) { try { PostGriveance obj = new PostGriveance(); var result = obj.SaveGrievance(objparam); return(result); } catch (Exception e) { return(new Error() { IsError = true, Message = e.Message }); } }
public object PostGrievance([FromBody] ParamSaveGriveance ob) { try { PostGriveance obj = new PostGriveance(); var GRAllocation = obj.SaveGrievance(ob); return(GRAllocation); } catch (Exception ex) { return(new Error() { IsError = true, Message = ex.Message }); } }