public ActionResult <IEnumerable <string> > Get()
 {
     try
     {
         return(Ok(_applicationServicePerson.GetAll()));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
Пример #2
0
 public ActionResult <IEnumerable <string> > Get()
 {
     try
     {
         return(Ok(_applicationServicePerson.GetAll()));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public ActionResult <IEnumerable <string> > GetAll([FromQuery] PaginationQuery paginationQuery)
 {
     return(Ok(_applicationServicePerson.GetAll(paginationQuery)));
 }