public async Task <IActionResult> GetMyProfile()
        {
            var userName = GetUserName();

            if (string.IsNullOrEmpty(userName))
            {
                return new ObjectResult("Нет доступа")
                       {
                           StatusCode = 403
                       }
            }
            ;
            var result = await _managerProfile.GetUser(userName);

            return(Tools.CreateResult(true, "", result));
        }
 public async Task <IActionResult> GetUser(string userName)
 {
     return(Tools.CreateResult(true, "", await _managerProfile.GetUser(userName)));
 }