/// <summary> /// Частичное представление - открытие окна редактирования /// </summary> public ActionResult Edit(long id) { var model = _schedulesService.GetModel(id); var editWindowModel = new SchedulesEditWindowModel <ScheduleGetModel>(model); PrepareEditWindowModel(editWindowModel); return(PartialView("Partial/Edit", editWindowModel)); }
public HttpResponseMessage Get(long id) { var result = schedulesService.GetModel(id); if (result == null) { return(Failure("График работ с указанным идентификатором не найден")); } return(Success(result)); }