示例#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);

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