public void Execute(UpdateSectionCommand command) { _databaseGateway.Database.Update("Section") .Column("Name", command.Name) .Column("Modified", DateTime.Now) .Where("SectionId", command.SectionId) .Command.Execute(); }
public HttpResponseMessage UpdateSection(UpdateSectionCommand command) { _serviceLocator.Resolve<UpdateSection>().Execute(command); return new HttpResponseMessage(HttpStatusCode.NoContent); }