public Model.Keyboard GetKeyboard(KeyboardType type) { using (var ctx = new CableProviderConnection()) { string keyboardType = type.ToString(); DvrKeyboard keyboard = _dataExecutor.ExecuteQuery(new GetKeyboard(ctx, keyboardType)); IMapper mapHandler = MappingHandler.BuildMapper(); return(mapHandler.Map <Model.Keyboard>(keyboard)); } }
public GetKeyboard(CableProviderConnection context, string type) { _context = context; _type = type; }