示例#1
0
        public void AddUserRequest(int driverID, string userCity, string userBusStop)
        {
            UserRequestModels userRequest = new UserRequestModels(driverID, userCity, userBusStop);

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

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

            UsersRequests.Remove(userRequest);
        }