Exemplo n.º 1
0
        public List<Core.Model.Block> getBlocks(blockType type, blockWhat what)
        {
            int block_type = (int)type;
            int block_what = (int)what;

            List<block> blocks = (from m in db_mysql.blocks where m.Type == block_type && m.What == block_what select m).ToList();
            return Mapper.Map<List<block>, List<Block>>(blocks);
        }
Exemplo n.º 2
0
 public List<Block> getBlocks(blockType type, blockWhat what)
 {
     return _queryBlocks.getBlocks(type, what);
 }