Exemplo n.º 1
0
        public async Task <IActionResult> AddStation(AddStationDTO request)
        {
            ServiceResponse <List <Station> > response = await _routeService.AddStation(request);

            if (!response.Success)
            {
                return(BadRequest(response));
            }
            return(Ok(response));
        }
Exemplo n.º 2
0
 public bool AddStation(LineStation station)
 {
     return(routeService.AddStation(station));
 }