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); }
// 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); }