public async Task <IActionResult> DeleteUserProfile(int id)
        {
            if (!ModelState.IsValid)
            {
                return(StatusCode(400));
            }

            if (await _manager.DeleteUserProfile(id))
            {
                return(StatusCode(207));
            }

            throw new Exception("User Profile could not be deleted.");
        }