예제 #1
0
        public string getUserDept(string username)
        {
            SA38ADTeam6Entities context = new SA38ADTeam6Entities();

            var q = (from x in context.Employees
                     where x.UserName == username
                     select x).First();

            return(q.DeptCode);
        }
예제 #2
0
        // used for mobile
        public Employee getLoginCredentials(string username)
        {
            SA38ADTeam6Entities context = new SA38ADTeam6Entities();

            var q = (from x in context.Employees
                     where x.UserName == username
                     select x).First();

            return(q);
        }