public async Task<IHttpActionResult> GetProfile(string username)
        {
            if (User.Identity.GetUserName() != username)
                return Unauthorized();

            var user = await Task.Run(() => _userManager.FindByName(username));

            var result = new RegisterModel();
            result.RegisterModelFactory(user);

            return Ok(result);

        }
        public async Task<IHttpActionResult> GetProfile()
        {
            var user = await _userManager.FindByNameAsync(User.Identity.GetUserName());

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

            var result = new RegisterModel();
            result.RegisterModelFactory(user);

            return Ok(result);
        }