private string getFullNameById(long id) { IMapper mapper = SetupMapper(); IUserDal user = new UserDalEf(mapper); if (id == 0) { return("no"); } return(user.GetUserById(id).FullName); }
public string GetUsersFullNameById(long id) { return(id > 0 ? _userDal.GetUserById(id).FullName : "no one"); }
//public int GetAccessLevel(string username) //{ // return _userDal.GetAccessLevel(username); //} public UserDTO GetUserByUsername(string username) { long id = GetUserId(username); return(_userDal.GetUserById(id)); }