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); } }
public void UpdateEvent(Event evt) { _diyEventRepository.Update(evt); }
public void DeleteEvent(Event evt) { _diyEventRepository.Delete(evt); }
public void InsertEvent(Event evt) { _diyEventRepository.Insert(evt); }
public static Event ToEntity(this EventModel model, Event destination) { return Mapper.Map(model, destination); }