public DateTime LastLoginDate(string NationalCode) { return(dc.LogSet_Select().Where(x => x.NationalCode == NationalCode && x.Description == "• Successful Login").OrderByDescending(x => x.EventDateTime).FirstOrDefault().EventDateTime); }
public List <LogSet_SelectResult> GetTopLogs(int count = 100) { return(dc.LogSet_Select().OrderByDescending(x => x.EventDateTime).Take(count).ToList()); }