Esempio n. 1
0
        protected void UpdateLocales(Event @event, EventModel model)
        {
            foreach (var localized in model.Locales)
            {
                _localizedEntityService.SaveLocalizedValue(@event,
                                                               x => x.Title,
                                                               localized.Title,
                                                               localized.LanguageId);
                _localizedEntityService.SaveLocalizedValue(@event,
                                                               x => x.Full,
                                                               localized.Full,
                                                               localized.LanguageId);

            }
        }
Esempio n. 2
0
 public void UpdateEvent(Event evt)
 {
     _diyEventRepository.Update(evt);
 }
Esempio n. 3
0
 public void DeleteEvent(Event evt)
 {
     _diyEventRepository.Delete(evt);
 }
Esempio n. 4
0
 public void InsertEvent(Event evt)
 {
     _diyEventRepository.Insert(evt);
 }
Esempio n. 5
0
 public static Event ToEntity(this EventModel model, Event destination)
 {
     return Mapper.Map(model, destination);
 }