예제 #1
0
 public async Task <IActionResult> AddStation(string value,
                                              double lat, double lng,
                                              int tblRouteID,
                                              string direction,
                                              int isMainterminal)
 {
     try
     {
         return(Ok(await _stationRepository.AddStation(value, lat, lng, tblRouteID, direction, isMainterminal)));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex));
     }
 }