BistroDriveWebApp.Controllers.ApiController.GetUserInfoBuffered C# (CSharp) Method

GetUserInfoBuffered() public method

public GetUserInfoBuffered ( string userId ) : UserSerealizerBody
userId string
return UserSerealizerBody
        public UserSerealizerBody GetUserInfoBuffered(string userId)
        {

            var user = DataManager.User.GetUserByIdBuffered(userId);
            string description = DataManager.User.GetUserDescriptionBuffered(userId);
            string address = string.Format("{0}://{1}", Request.Url.Scheme, Request.Url.Authority);
            UserSerealizerBody result = new UserSerealizerBody
            {
                Id = user.Id,
                Email = user.Email,
                Address = user.Address,
                Description = description,
                FirstName = user.FristName,
                Surname = user.Surname,
                Phone = user.PhoneNumber,
                Username = user.UserName,
                AvatarUrl = address + user.Avatar_Url
            };
            return result;
        }
    }