Example #1
0
 public VehcielModel GetVehicleData(string lang, int userId)
 {
     //OperationResult or;
     try
     {
         var data = new VehicelBl().GetVehicleData(userId, lang);
         return(data);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #2
0
        public OperationResult GetVehicleCategoryType(string lang)
        {
            OperationResult or;

            try
            {
                or = new VehicelBl().GetVehicleCategoryType(lang);
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(or);
        }
Example #3
0
        public OperationResult GetAllVehicleCategory()
        {
            OperationResult or;

            try
            {
                or = new VehicelBl().GetAllVehicleCategory();
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(or);
        }
Example #4
0
        public OperationResult UpdateVehicleData(VehcielModel vehciel)
        {
            OperationResult or;

            try
            {
                or = new VehicelBl().UpdateVehicleData(vehciel);
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(or);
        }
Example #5
0
        public OperationResult InsertVehicleData(InsertVehcielModel model)
        {
            OperationResult or;

            try
            {
                or = new VehicelBl().InsertNewVehicle(model);
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(or);
        }
Example #6
0
        public OperationResult GetNearstDriver(double Picklat, double PickLon, int VsubCategory, double dropofflat, double dropoffLon)
        {
            OperationResult or;

            try
            {
                or = new VehicelBl().GetNearstDriver(Picklat, PickLon, VsubCategory, dropofflat, dropoffLon);
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(or);
        }