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();
 }
示例#3
0
 public ViewResult SomeTest(MyModel guestResponse)
 {
     Repository.AddResponse(guestResponse);
     return(View("Thanks", guestResponse));
 }