public RequestLift Create(RequestLift request)
        {
            LiftConfirmation confirmation = new LiftConfirmation
            {
                Id            = request.Id,
                UserIdCreated = request.userId
            };

            _lifts.InsertOne(request);
            _requests.InsertOne(confirmation);
            return(request);
        }
        public IActionResult Update(string id, RequestLift liftIn)
        {
            var lift = _liftservice.Get(id);

            if (lift == null)
            {
                return(NotFound());
            }

            _liftservice.Update(id, liftIn);

            return(NoContent());
        }
        public ActionResult <RequestLift> Create([FromBody] RequestLift lift)
        {
            _liftservice.Create(lift);

            return(CreatedAtRoute("GetLift", new { id = lift.Id.ToString() }, lift));
        }
 public void Remove(RequestLift liftIn) =>
 _lifts.DeleteOne(lift => lift.Id == liftIn.Id);
 public void Update(string id, RequestLift liftIn) =>
 _lifts.ReplaceOne(lift => lift.Id == id, liftIn);