public IActionResult Edit(Guid ID) { ViewBag.DepList = _DepartmentAppService.QueryList(c => c.ID != Guid.Empty); DepartmentDto currModel = _DepartmentAppService.Get(ID); return(View(currModel)); }
public IActionResult Get(Guid id) { if (id == Guid.Empty) { return(Json(_service.GetAllList()[0])); } else { var dto = _service.Get(id); return(Json(dto)); } }
public async Task <ActionResult> Edit(int departmentId) { var department = await _departmentAppService.Get(new EntityDto <int>(departmentId)); var model = new Edit { Department = department, Status = department.Status }; return(View("Edit", model)); }
public IActionResult Get(Guid id) { var dto = _service.Get(id); return(Json(dto)); }
public async Task <IActionResult> Get(string id) { var menu = await _departmentAppService.Get(Guid.Parse(id)); return(Json(menu)); }
public ActionResult Get(Guid id) { var dto = _service.Get(id); return(Ok(dto)); }
public IActionResult Get(Guid id) { var dto = _departmentAppService.Get(id); return(Json(dto)); }
public IActionResult Get(int id) { return(Ok(_service.Get(id))); }
public Department Get(Guid id) { return(_service.Get(id)); }