Пример #1
0
 public void Execute(UpdateSettingCommand command)
 {
     _databaseGateway.Database.Update("Setting")
                 .Column("Key", command.Key)
                 .Column("Value", command.Value)
                 .Column("Description", command.Description)
                 .Column("SectionId", command.SectionId)
                 .Column("Modified", DateTime.Now)
                 .Where("SettingId", command.SettingId)
                 .Command.Execute();
 }
Пример #2
0
 public HttpResponseMessage UpdateSetting(UpdateSettingCommand command)
 {
     _serviceLocator.Resolve<UpdateSetting>().Execute(command);
     return new HttpResponseMessage(HttpStatusCode.Created);
 }