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);
 }
Example #3
0
 public void InsertService(Service service)
 {
     _serviceRepository.Insert(service);
 }
Example #4
0
 public void UpdateService(Service service)
 {
     _serviceRepository.Update(service);
 }
Example #5
0
 public void DeleteService(Service service)
 {
     _serviceRepository.Delete(service);
 }