public void Execute(UpdateSettingCommand command) { _databaseGateway.Database.Update("Setting") .Column("Key", command.Key) .Column("Value", command.Value) .Column("Description", command.Description) .Column("SectionId", command.SectionId) .Column("Modified", DateTime.Now) .Where("SettingId", command.SettingId) .Command.Execute(); }
public HttpResponseMessage UpdateSetting(UpdateSettingCommand command) { _serviceLocator.Resolve<UpdateSetting>().Execute(command); return new HttpResponseMessage(HttpStatusCode.Created); }