public ActionResult EditProperty(int id) { ViewBag.ActiveMenu = "property"; var model = new PropertyManagementModel().GetPropertyDet(id); return(View("..\\PropertyManagement\\EditProperty", model)); }
public ActionResult AddProperty() { Session["UNOR"] = 10; ViewBag.ActiveMenu = "property"; int id = 0; var model = new PropertyManagementModel().GetPropertyDet(id); return(View("..\\PropertyManagement\\EditProperty", model)); }
public ActionResult SaveUpdateProperty(PropertyManagementModel model) { try { string msg = new PropertyManagementModel().SaveUpdateProperty(model); return(Json(new { Msg = msg }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(new { error = ex.Message }, JsonRequestBehavior.AllowGet)); } }
public ActionResult PropertyFileUpload(PropertyManagementModel model) { try { HttpPostedFileBase fileBaseUpload1 = null; for (int i = 0; i < Request.Files.Count; i++) { fileBaseUpload1 = Request.Files[i]; } return(Json(new { model = new PropertyManagementModel().PropertyFileUpload(fileBaseUpload1, model) }, JsonRequestBehavior.AllowGet)); } catch (Exception Ex) { return(Json(new { model = Ex.Message }, JsonRequestBehavior.AllowGet)); } }