public void Add(Info model) { var entity = InfoFactory.Create(model); _infoRepository.Add(entity); model.Id = entity.Id; }
public Info Get() { var entity = _infoRepository.Get(); return(entity == null ? null : InfoFactory.Create(entity)); }
public Info Get(int id) { var entity = _infoRepository.Get(id); return(InfoFactory.Create(entity)); }