public IEnumerable <Attempt> GetCaseByStatus(string status) { return(Attempts.AsEnumerable().Where(c => c != null && c.Status != null && c.Status.Equals(status, StringComparison.InvariantCultureIgnoreCase)).ToList()); }