public IActionResult Update(int id) { var person = _personAppService.GetPerson(id); PersonDtoPut newPerson = new PersonDtoPut { FirstName = person.FirstName, LastName = person.LastName, OfficeId = person.OfficeId }; var offices = SelectOffice(); ViewData["OfficeList"] = offices; return(View(newPerson)); }
public ActionResult Get(string id) { return(Ok(_appService.GetPerson(Guid.Parse(id))));; }