-
-
Save justinyoo/b7e1cadfbcc2d7b32f6e to your computer and use it in GitHub Desktop.
Event Sourcing & CQRS Pattern for SPA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[RoutePrefix("api/events")] | |
public class InputValueChangedEventController : ApiController | |
{ | |
[HttpPost] | |
[Route("username-changed")] | |
public virtual async Task<UsernameChangeResponse> SetUsername([FromBody] UsernameChangeRequest request) | |
{ | |
var response = await this._service.ChangeUsernameAsync(request); | |
return response; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment