public IActionResult Get([FromServices] IPersonBusiness personService, [FromServices] IMapper mapper) { var resultDomain = personService.FindAll(); var resultVO = mapper.Map <List <PersonValue> >(resultDomain); return(Ok(resultVO)); }
public IActionResult Get() { List <Person> person = personBusiness.FindAll(); if (person == null) { return(NotFound()); } return(Ok(person)); }
public ActionResult Get() { List <PersonVO> pessoas = new List <PersonVO>(); try { pessoas = _personBusiness.FindAll().ToList(); } catch (Exception ex) { throw ex; } return(Ok(pessoas)); }
public IActionResult Get() { try { var person = _personBusiness.FindAll(); if (person == null) { return(NotFound()); } else { return(Ok(person)); } } catch (Exception ex) { throw ex; } }
public IActionResult Get() { return(Ok(_personBusiness.FindAll())); }
//[Authorize("Bearer")] public IActionResult Get() { return(new OkObjectResult(_personBusiness.FindAll())); }
public IActionResult Get() { return(Ok(_personService.FindAll())); }
public IActionResult Get() { return(Ok(_personRepository.FindAll())); }
public IActionResult Get() { var res = _personBusiness.FindAll(); return(Ok(res)); }
public IActionResult Get(int page, int pageSize) { return(Ok(_personService.FindAll(page, pageSize))); }
public ActionResult Get() { var persons = _personBusiness.FindAll(); return(Ok(persons)); }
public ActionResult <IEnumerable <string> > Get() { return(Ok(_personBusiness.FindAll())); }
// public ActionResult<IEnumerable<string>> Get() public IActionResult Get() { // return new string[] { "value1", "value2" }; return(Ok(_personBusiness.FindAll())); }
public ActionResult Get() { var persons = _personBusiness.FindAll(); return(new OkObjectResult(persons)); }
public List <Person> FindAll() { return(_repository.FindAll()); }
public ActionResult <List <Persons> > Get() { return(Ok(_personBusiness.FindAll())); }