public IQueryable <Tracker.Core.Data.Task> GetByStatus(Tracker.Core.Data.Status status) { if (Context.LoadOptions == null) { return(Query.GetByStatus.Invoke(Context, status)); } else { return(Entity.Where(t => t.Status == status)); } }
public IQueryable <Tracker.Core.Data.Task> GetByAssignedIdStatus(int?assignedId, Tracker.Core.Data.Status status) { if (Context.LoadOptions == null) { return(Query.GetByAssignedIdStatus.Invoke(Context, assignedId, status)); } else { return(Entity.Where(t => t.AssignedId == assignedId && t.Status == status)); } }