public ActionResult <string> Get(int id) { try { PersonDTO person = _applicationServicePerson.GetById(id); if ((person != null) && (person.PersonId != 0)) { return(Ok(person)); } else { return(NotFound()); } } catch (Exception ex) { throw ex; } }
public ActionResult <IEnumerable <string> > Get(int id) { try { return(Ok(_applicationServicePerson.GetById(id))); } catch (Exception e) { return(BadRequest(e.Message)); } }
public ActionResult <string> Get(int id) { return(Ok(_applicationServicePerson.GetById(id))); }