자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
public async Task <IActionResult> GetTransportScheduleById(int transportSchedulesId) { try { var _serviceEndPoint = new ServicesEndPoint(_unitOfWork, _emailService); TransportSchedule tpresult = await _serviceEndPoint.GetTransportScheduleById(transportSchedulesId); TransportScheduleViewModel result = _Mapper.Map <TransportScheduleViewModel>(tpresult); if (result == null) { return(NotFound(result)); } return(Ok(result)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }