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