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