public void Execute(UpdateApplicationCommand command) { _databaseGateway.Database.Update("Application") .Column("Identifier", command.Identifier) .Column("Name", command.Name) .Column("SecretKey", command.SecretKey) .Column("Description", command.Description) .Column("Modified", DateTime.Now) .Where("ApplicationId", command.ApplicationId) .Command.Execute(); }
public HttpResponseMessage UpdateApplication(UpdateApplicationCommand command) { _serviceLocator.Resolve<UpdateApplication>().Execute(command); return new HttpResponseMessage(HttpStatusCode.NoContent); }