public IHttpActionResult Post(MyModel model) { _bus.Publish(new AddItemCommand() { Id = Guid.NewGuid(), Name = model.Name, ClientId = CallerClientId }); return Ok(); }
public IHttpActionResult Put(MyModel model) { _bus.Publish(new UpdateItemCommand() { Id = model.Id, NewName = model.Name, ClientId = CallerClientId, IsActive = model.IsActive }); return Ok(); }
public ViewResult SomeTest(MyModel guestResponse) { Repository.AddResponse(guestResponse); return(View("Thanks", guestResponse)); }