public IActionResult Delete(string id)
        {
            NeuFinesse.Data.Model.UserInterest userInterest = _dataRepository.Get(id);
            if (userInterest == null)
            {
                return(NotFound("The user record couldn't be found."));
            }

            _dataRepository.Delete(userInterest);
            return(NoContent());
        }
        public IActionResult Post([FromBody] NeuFinesse.Data.Model.UserInterest userInterest)
        {
            if (userInterest == null)
            {
                return(Ok(0));
            }

            _dataRepository.Add(userInterest);
            return(Ok("Interest added successfully"));
            //return CreatedAtRoute(
            //      "Get",
            //      new { Id = userInterest.UserId },
            //      userInterest);
        }
        public IActionResult Put(string id, [FromBody] NeuFinesse.Data.Model.UserInterest userInterest)
        {
            if (userInterest == null)
            {
                return(BadRequest("User is null."));
            }

            NeuFinesse.Data.Model.UserInterest userToUpdate = _dataRepository.Get(id);
            if (userToUpdate == null)
            {
                return(NotFound("The user record couldn't be found."));
            }

            _dataRepository.Update(userToUpdate, userInterest);
            return(NoContent());
        }