Ejemplo n.º 1
0
        public void Add(Info model)
        {
            var entity = InfoFactory.Create(model);

            _infoRepository.Add(entity);

            model.Id = entity.Id;
        }
Ejemplo n.º 2
0
        public Info Get()
        {
            var entity = _infoRepository.Get();

            return(entity == null ? null : InfoFactory.Create(entity));
        }
Ejemplo n.º 3
0
        public Info Get(int id)
        {
            var entity = _infoRepository.Get(id);

            return(InfoFactory.Create(entity));
        }