Exemple #1
0
        public Task <GlobalItem> Get(Guid parentId, Guid itemId)
        {
            const string query = "select * from GlobalItem where ParentId = @parentId and ItemId = @itemId";

            return(_commonDb.QuerySingleOrDefaultAsync <GlobalItem>(query, new { parentId, itemId }));
        }
Exemple #2
0
 public Task <Item> Get(Guid itemId)
 {
     return(_commonDb.QuerySingleOrDefaultAsync <Item>("select * from Items where ItemId = @itemId", new { itemId }));
 }