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