public void Update(int id, OfficeDtoPut input) { _officeRepository.Update(id, ent => { ObjectMapper.Map(input, ent); }); }
public IActionResult Update(int id) { var office = _officeAppService.GetOffice(id); OfficeDtoPut newOffice = new OfficeDtoPut { Description = office.Description }; return(View(newOffice)); }
public IActionResult Update(int id, OfficeDtoPut input) { _officeAppService.Update(id, input); return(RedirectToAction("Index")); }