public IActionResult DeleteBonus(long id)
 {
     try
     {
         DADriver dADriver = new DADriver();
         return(this.OKResponse(dADriver.DeleteBonus(_context, id, User.ToAppUser()) == true ? "Deleted Successfully" : "Deletion Failed"));
     }
     catch (DataValidationException ex)
     {
         return(this.KnowOperationError(ex.Message));
     }
 }
 public IActionResult EditRewardPoint(EditReward editReward)
 {
     try
     {
         Validator.validateRewardPoint(editReward);
         DADriver dADriver = new DADriver();
         return(this.OKResponse(dADriver.EditRewardPoint(_context, editReward, User.ToAppUser()) == true ? "Updated Successfully" : "Updation Failed"));
     }
     catch (DataValidationException ex)
     {
         return(this.KnowOperationError(ex.Message));
     }
 }
 public IActionResult EditBonus(DriverBonusInfo driverBonusInfo)
 {
     try
     {
         Validator.validateDriverBonus(driverBonusInfo);
         DADriver dADriver = new DADriver();
         return(this.OKResponse(dADriver.EditBonus(_context, driverBonusInfo, User.ToAppUser()) == true ? "Updated Successfully" : "Updation Failed"));
     }
     catch (DataValidationException ex)
     {
         return(this.KnowOperationError(ex.Message));
     }
 }
 public IActionResult AddWallet(DriverAddWallet driverAddWallet)
 {
     try
     {
         Validator.validateDriverWallet(driverAddWallet);
         DADriver dADriver = new DADriver();
         return(this.OKResponse(dADriver.AddWallet(_context, driverAddWallet, User.ToAppUser()) == true ? "Inserted Successfully" : "Insertion Failed"));
     }
     catch (DataValidationException ex)
     {
         return(this.KnowOperationError(ex.Message));
     }
 }
        public IActionResult DeleteDriver(long driverid)
        {
            DADriver dADriver = new DADriver();

            return(this.OKResponse(dADriver.Delete(_context, driverid, User.ToAppUser()) == true ? "Deleted Successfully" : "Deletion Failed"));
        }
        public IActionResult GetRewardEdit(long driverid)
        {
            DADriver dADriver = new DADriver();

            return(this.OK <EditReward>(dADriver.GetbyRewardPoint(driverid, _context)));
        }
        public IActionResult GetDriverEdit(long driverid)
        {
            DADriver dADriver = new DADriver();

            return(this.OK <DriverInfo>(dADriver.GetbyId(driverid, _context)));
        }
        public IActionResult GetBlockedDriverList()
        {
            DADriver dADriver = new DADriver();

            return(this.OK <List <DriverList> >(dADriver.BlockedList(_context)));
        }
        public IActionResult ListDocument()
        {
            DADriver dADriver = new DADriver();

            return(this.OK <List <DocumentList> >(dADriver.ListDocument(_context)));
        }
Пример #10
0
        public IActionResult GetByBonusId(long id)
        {
            DADriver dADriver = new DADriver();

            return(this.OK <DriverBonusInfo>(dADriver.GetByBonusId(id, _context)));
        }
Пример #11
0
        public IActionResult DriverBonusList()
        {
            DADriver dADriver = new DADriver();

            return(this.OK <List <DriverBonusList> >(dADriver.ListBonus(_context)));
        }
Пример #12
0
        public IActionResult GetDriverFineList()
        {
            DADriver dADriver = new DADriver();

            return(this.OK <List <DriverFineInfo> >(dADriver.ListFine(_context)));
        }
Пример #13
0
        public IActionResult GetDriverWalletList(long driverId)
        {
            DADriver dADriver = new DADriver();

            return(this.OK <DriverListWallet>(dADriver.ListWallet(_context, driverId)));
        }
Пример #14
0
        public IActionResult InActivedriver(long driverid, bool status)
        {
            DADriver dADriver = new DADriver();

            return(this.OKResponse(dADriver.DisableUser(_context, driverid, status, User.ToAppUser()) == true ? (status == true ? "Active Successfully" : "InActive Successfully") : "Failed to Update"));
        }