Roadkill.Core.Mvc.ViewModels.RelViewModel.GetUser C# (CSharp) Method

GetUser() public method

Returns the user name
public GetUser ( string username ) : string
username string
return string
        public string GetUser(string username)
        {

            string _usernames = "unknown";
            try
            {

                LightSpeedRepository repository = new LightSpeedRepository(GetAppSettings());
                User _user;
                _user = repository.GetUserByUsername(username);
                _usernames = _user.Firstname + " " + _user.Lastname;
            }
            catch { }

            return _usernames;

        }