public void Execute(DeleteApplicationCommand command)
 {
     _databaseGateway.Database.Sql("delete from Application where ApplicationId = @0", command.ApplicationId)
         .Execute();
 }
 public HttpResponseMessage DeleteApplication(int applicationId)
 {
     var command = new DeleteApplicationCommand() { ApplicationId = applicationId };
     _serviceLocator.Resolve<DeleteApplication>().Execute(command);
     return new HttpResponseMessage(HttpStatusCode.NoContent);
 }