Example #1
0
 public async Task <ActionResult <Zone> > UpdateZone(
     [FromServices] IZoneService zoneService,
     [FromRoute] int zoneId,
     [FromBody] CreateOrUpdateZoneCommand command)
 {
     return(await zoneService.UpdateZone(zoneId, command));
 }
Example #2
0
 public Task <Zone> UpdateZone(int zoneId, CreateOrUpdateZoneCommand command)
 {
     throw new NotImplementedException();
 }
Example #3
0
 public async Task <Zone> CreateZone(CreateOrUpdateZoneCommand command)
 {
     return(await this.client.Post <Zone>(zonesController, command));
 }
Example #4
0
 public async Task <ActionResult <Zone> > CreateZone(
     [FromServices] IZoneService zoneService,
     [FromBody] CreateOrUpdateZoneCommand command)
 {
     return(await zoneService.CreateZone(command));
 }