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);

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