public ActionResult Update(PlatbaDTO dto) { try { var updent = icsp.CreateIUpdateServiceTask().GetTask(dto).Result; return View("/Views/CRUDControllers/Platba/"+ "Detail"+ ".cshtml", updent); } catch ( Exception e ) { ViewBag.Original = dto; ViewBag.Reasons = e; return View("/Views/CRUDControllers/Platba/"+ "Update"+ ".cshtml"); } }
public System.Net.Http.HttpResponseMessage Delete(PlatbaDTO dto) { icsp.CreateIDeleteService().Invoke(this, dto); return new System.Net.Http.HttpResponseMessage(HttpStatusCode.NoContent); }