Exemple #1
0
        private void UpdateDriver(int driverId, DriverStatusEnum status)
        {
            //if (request.DriverId == null)
            //    return;

            var    operatorBL = HttpContext.Current.Application.GetContainer().Resolve <OperatorBl>();
            var    driver     = operatorBL.GetUserById(driverId);
            UserBl userBL     = HttpContext.Current.Application.GetContainer().Resolve <UserBl>();

            driver.DriverStatus = (int)status;

            userBL.UpdateUser(driver);
            driversDropDownList.DataBind();
        }
        private void UpdateDriver(int driverId, DriverStatusEnum status)
        {
            //if (request.DriverId == null)
            //    return;

            var operatorBL = HttpContext.Current.Application.GetContainer().Resolve<OperatorBl>();
            var driver = operatorBL.GetUserById(driverId);
            UserBl userBL = HttpContext.Current.Application.GetContainer().Resolve<UserBl>();

            driver.DriverStatus = (int)status;

            userBL.UpdateUser(driver);
            driversDropDownList.DataBind();
        }