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