コード例 #1
0
        private string getFullNameById(long id)
        {
            IMapper  mapper = SetupMapper();
            IUserDal user   = new UserDalEf(mapper);

            if (id == 0)
            {
                return("no");
            }
            return(user.GetUserById(id).FullName);
        }
コード例 #2
0
 public string GetUsersFullNameById(long id)
 {
     return(id > 0 ? _userDal.GetUserById(id).FullName : "no one");
 }
コード例 #3
0
        //public int GetAccessLevel(string username)
        //{
        //    return _userDal.GetAccessLevel(username);
        //}
        public UserDTO GetUserByUsername(string username)
        {
            long id = GetUserId(username);

            return(_userDal.GetUserById(id));
        }