Пример #1
0
 public void Execute(DeleteSettingCommand command)
 {
     _databaseGateway.Database.Sql("delete from Setting where SettingId = @0", command.SettingId)
         .Execute();
 }
Пример #2
0
 public HttpResponseMessage DeleteSetting(int settingId)
 {
     var command = new DeleteSettingCommand() { SettingId = settingId };
     _serviceLocator.Resolve<DeleteSetting>().Execute(command);
     return new HttpResponseMessage(HttpStatusCode.NoContent);
 }