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