public ActionResult Update([DataSourceRequest] DataSourceRequest request, CaseTypesVM obj) { if (ModelState.IsValid) { repository.CaseTypesUpdate(obj); } return(Json(new[] { obj }.ToDataSourceResult(request, ModelState))); }
public static CaseType GetCaseTypeFromViewModel(CaseTypesVM obj) { return(new CaseType { Active = obj.Active, Description = obj.Description, TypeCode = obj.TypeCode, TypeId = obj.TypeId }); }
public ActionResult Destroy([DataSourceRequest] DataSourceRequest request, CaseTypesVM obj) { repository.CaseTypesDelete(obj); return(Json(new[] { obj }.ToDataSourceResult(request, ModelState))); }