Exemple #1
0
        public IHttpActionResult getRoutes()
        {
            ChuyenXeDAL ChuyenXeDAL = new ChuyenXeDAL();

            //List<LoTrinhDTO> loTrinhDTOs = tripDAL.getListRoute();
            return(Ok(ChuyenXeDAL.getListRoute()));
        }
Exemple #2
0
        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));
        }
Exemple #3
0
        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)));
        }