//public JsonResult StatusUpdateServiceRequest(ServicesManagementModel model) //{ // try // { // return Json(new { model = new ServicesManagementModel().StatusUpdateServiceRequest(model) }, JsonRequestBehavior.AllowGet); // } // catch (Exception Ex) // { // return Json(new { model = Ex.Message }, JsonRequestBehavior.AllowGet); // } //} public JsonResult StatusUpdateForServicePerson(ServicesManagementModel model) { try { return(Json(new { model = new ServicesManagementModel().StatusUpdateForServicePerson(model) }, JsonRequestBehavior.AllowGet)); } catch (Exception Ex) { return(Json(new { model = Ex.Message }, JsonRequestBehavior.AllowGet)); } }
public ActionResult FillAssignmentAuditHistoryList(ServicesManagementModel model) { try { return(Json(new { model = new ServicesManagementModel().FillAssignmentAuditHistoryList(model) }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(new { model = ex.Message }, JsonRequestBehavior.AllowGet)); } }
public ActionResult UploadServiceFile(ServicesManagementModel model) { try { HttpPostedFileBase fileBaseUpload = null; for (int i = 0; i < Request.Files.Count; i++) { fileBaseUpload = Request.Files[i]; } return(Json(new { model = new ServicesManagementModel().UploadServiceFile(fileBaseUpload, model) }, JsonRequestBehavior.AllowGet)); } catch (Exception Ex) { return(Json(new { model = Ex.Message }, JsonRequestBehavior.AllowGet)); } }