public IHttpActionResult getRoutes() { ChuyenXeDAL ChuyenXeDAL = new ChuyenXeDAL(); //List<LoTrinhDTO> loTrinhDTOs = tripDAL.getListRoute(); return(Ok(ChuyenXeDAL.getListRoute())); }
public IHttpActionResult getTrip([FromUri] string malotrinh, [FromUri] string pointStartID, string pointEndID, int day, int month, int year) { if (malotrinh == "") { return(BadRequest("malotrinh khong de trong")); } string date = "" + month + "/" + day + "/" + year; DateTime startDate = DateTime.Parse(date); List <ChuyenXeDTO> list = new ChuyenXeDAL().getListChuyenXe(malotrinh, startDate, pointStartID, pointEndID); return(Ok(list)); }
public XeDTO getSchemaCarByCarIDAndTripID(string carID, string tripID) { ChuyenXeDAL chuyenXeDAL = new ChuyenXeDAL(); return(chuyenXeDAL.getSchemaCar(carID, tripID)); }
public IHttpActionResult getLichTrinhDateNow(string tentaikhoan, string manhanvien) { ChuyenXeDAL chuyenXeDAL = new ChuyenXeDAL(); return(ResponseToOk(chuyenXeDAL.GetLichTrinhDateNow(tentaikhoan, manhanvien))); }