public Task <List <SocietyDocument> > List(SocietyDocumentSearchParams searchParams) { var taskResult = Task.Run(() => { using (var context = new DbContext()) { var ctx = context.SocietyDocuments.ToList(); return(ctx); } }); return(taskResult); }
public Task <List <SocietyDocument> > List(SocietyDocumentSearchParams searchParams) { return(_societyDocumentRepository.List(searchParams)); }