protected void UpdateLocales(Service Service, ServiceModel model) { foreach (var localized in model.Locales) { _localizedEntityService.SaveLocalizedValue(Service, x => x.Title, localized.Title, localized.LanguageId); _localizedEntityService.SaveLocalizedValue(Service, x => x.Full, localized.Full, localized.LanguageId); } }
public static Service ToEntity(this ServiceModel model, Service destination) { return Mapper.Map(model, destination); }
public void InsertService(Service service) { _serviceRepository.Insert(service); }
public void UpdateService(Service service) { _serviceRepository.Update(service); }
public void DeleteService(Service service) { _serviceRepository.Delete(service); }