public void Update(int id, OfficeDtoPut input)
 {
     _officeRepository.Update(id, ent =>
     {
         ObjectMapper.Map(input, ent);
     });
 }
Example #2
0
        public IActionResult Update(int id)
        {
            var          office    = _officeAppService.GetOffice(id);
            OfficeDtoPut newOffice = new OfficeDtoPut
            {
                Description = office.Description
            };

            return(View(newOffice));
        }
Example #3
0
 public IActionResult Update(int id, OfficeDtoPut input)
 {
     _officeAppService.Update(id, input);
     return(RedirectToAction("Index"));
 }