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); }
public List<Block> getBlocks(blockType type, blockWhat what) { return _queryBlocks.getBlocks(type, what); }