public async Task <int> GetEquationCountByType(int type) { var db = new DiffEqDB(); var result = await db.CountByType(type); return(result); }
public async Task <IEnumerable <int> > GetEquationCounts() { var db = new DiffEqDB(); var result = await db.GetEquationCounts(); return(result); }
public async Task <IEnumerable <IEquation> > GetEquations(Dictionary <int, int> pairs) { var db = new DiffEqDB(); //needs refactor var type1res = await db.GetEquationList(pairs[1], 1); var type2res = await db.GetEquationList(pairs[2], 2); var result = MapDaoToDto((type1res).Union(type2res)); return(result); }
public async Task AddEquationsToDB(IEnumerable <IEquation> eqs) { var db = new DiffEqDB(); var forDb = MapDtoToDao(eqs); await db.AddToDB(forDb); }