public List <Note> GetAll(Filters.NoteFilterOptions options = null, PagingSettings paging = null) { var Notes = Context.Note.Where(q => !q.Deleted.HasValue); if (options != null) { if (options.Type.HasValue) { Notes = Notes.Where(c => c.Type == options.Type.Value); } } if (options.Order == "desc") { Notes = Notes.OrderByDescending(x => x.CreatedDate); } return(Notes.ToList()); }
public List <Note> GetAll(Filters.NoteFilterOptions options = null, PagingSettings paging = null) { return(Repository.GetAll(options, paging)); }