Пример #1
0
 public IActionResult GetStopTypes()
 {
     try
     {
         return(Success(_mapper.Map <List <StopTypeViewModel> >(_service.GetStopTypes())));
     }
     catch (ValidationException e)
     {
         return(Error <List <StopTypeViewModel> >(e));
     }
 }
 public IActionResult GetStopTypes()
 {
     return(Success(_service.GetStopTypes()));
 }