public UserLogin(string u) { UserDataContext ud = new UserDataContext(); UserLogin l = ud.GetUserByUsername(u); ID = l.ID; LoginName = l.LoginName; Fullname = l.Fullname; IsDefault = l.IsDefault; IsActive = l.IsActive; UserRoles = l.UserRoles; }
public UserLogin(string u) { UserDataContext ud = new UserDataContext(); UserLogin l = ud.GetUserByUsername(u); ID = l.ID; LoginName = l.LoginName; Fullname = l.Fullname; IsDefault = l.IsDefault; IsActive = l.IsActive; UserRoles = l.UserRoles; }