Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 public ActionResult Get(string id)
 {
     return(Ok(_appService.GetPerson(Guid.Parse(id))));;
 }