public ActionResult Index() { base.SetDisplayBtn(); base.SetCreateBtn(); base.SetEditBtn(); base.SetDeleteBtn(); var model = new SYS_PROPERTYModel(); return(View(model)); }
public OperationResult Insert(SYS_PROPERTYModel model) { var entity = new SYS_PROPERTY { PropertyID = model.PropertyID, PropertyName = model.PropertyName, Remark = model.Remark, Status = model.Status, }; SYS_PROPERTYRepository.Insert(entity); return(new OperationResult(OperationResultType.Success, "Added successfully")); }
public ActionResult Display(string PropertyID) { var model = new SYS_PROPERTYModel(); var entity = SYS_PROPERTYService.SYS_PROPERTYList.FirstOrDefault(t => t.PropertyID == PropertyID); if (null != entity) { model = new SYS_PROPERTYModel { PropertyID = entity.PropertyID }; } return(View(model)); }
public ActionResult Create(SYS_PROPERTYModel model) { if (ModelState.IsValid) { this.CreateBaseData <SYS_PROPERTYModel>(model); OperationResult result = SYS_PROPERTYService.Insert(model); if (result.ResultType == OperationResultType.Success) { return(Json(result)); } else { return(PartialView(model)); } } else { return(PartialView(model)); } }
public ActionResult Create() { var model = new SYS_PROPERTYModel(); return(PartialView(model)); }