//GetAll public static List <LastLocation1> GetAllLastLocations() { return(LastLocationConvertor.ConvertToListDto(LastLocationDL.GetAllLastLocations())); }
//GetByFullDate public static List <LastLocation1> GetLastLocationByFullDate(DateTime date) { List <LastLocation> lst = new List <LastLocation>(LastLocationDL.GetAllLastLocations()); return(LastLocationConvertor.ConvertToListDto(lst.Where(d => d.Date.Equals(date)).ToList())); }
//GetByYear public static List <LastLocation1> GetLastLocationByYear(int y) { List <LastLocation> lst = new List <LastLocation>(LastLocationDL.GetAllLastLocations()); return(LastLocationConvertor.ConvertToListDto(lst.Where(d => d.Date.Year == y).ToList())); }
//GetByUserId public static List <LastLocation1> GetByUserId(int userId) { List <LastLocation> lst = new List <LastLocation>(LastLocationDL.GetAllLastLocations()); return(LastLocationConvertor.ConvertToListDto(lst.Where(u => u.UserId == userId).ToList())); }