예제 #1
0
        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);

            }
        }
예제 #2
0
 public static Service ToEntity(this ServiceModel model, Service destination)
 {
     return Mapper.Map(model, destination);
 }
예제 #3
0
 public void InsertService(Service service)
 {
     _serviceRepository.Insert(service);
 }
예제 #4
0
 public void UpdateService(Service service)
 {
     _serviceRepository.Update(service);
 }
예제 #5
0
 public void DeleteService(Service service)
 {
     _serviceRepository.Delete(service);
 }