public async Task<List<Trans>> GetTransFromType(idinput input) { if(input.type == null) { return await db.GetTransFromType(null, input.id); } else { return await db.GetTransFromType(input.type, input.id); } }
public async Task<List<Trans>> GetTransFromHouse(idinput input) { return await db.GetTransFromHouse(input.id); }