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(); }
public void Update(int userRequestID) { UserRequestModels userRequest = repo.GetUserRequestByID(userRequestID); UsersRequests.Remove(userRequest); }