Exemple #1
0
        public async Task <List <Chore> > GetAllChoresByChoreTypeId(short choretypeId)
        {
            var cmd = SqlCommandBuilder.GetRecordsByField(typeof(Chore), typeof(short), "ChoreTypeId", choretypeId.ToString());

            return(await _sqlClient.Get <Chore>(cmd));
        }
Exemple #2
0
        public async Task <List <Chore> > GetAllChoresByHouseId(string houseId)
        {
            var cmd = SqlCommandBuilder.GetRecordsByField(typeof(Chore), typeof(Guid), "HouseId", houseId);

            return(await _sqlClient.Get <Chore>(cmd));
        }