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