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