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