public void AddUserRequest(int driverID, string userCity, string userBusStop)
        {
            UserRequestModels userRequest = new UserRequestModels(driverID, userCity, userBusStop);

            dbContext.UserRequest.Add(userRequest);
            dbContext.SaveChanges();
        }
        public void DeleteUserRequestByID(int userRequestID)
        {
            UserRequestModels r = GetUserRequestByID(userRequestID);

            dbContext.UserRequest.Remove(r);
            dbContext.SaveChanges();
        }
Exemple #3
0
        public void Update(int userRequestID)
        {
            UserRequestModels userRequest = repo.GetUserRequestByID(userRequestID);

            UsersRequests.Remove(userRequest);
        }