public ITelegram SelectCurrent() { IPersistTelegram telegramRepository = new TelegramRepository(); Persistence.Interface.ITelegram persistenceTelegram = telegramRepository.SelectCurrent(); IMapTelegram telegramMapper = new TelegramMapper(); return(telegramMapper.Map(persistenceTelegram)); }
public void Save(Business.Interface.ITelegram telegram) { IMapTelegram telegramMapper = new TelegramMapper(); Persistence.Interface.ITelegram persistenceTelegram = telegramMapper.Map(telegram); IPersistTelegram telegramRepository = new TelegramRepository(); telegramRepository.Save(persistenceTelegram); }