public async Task <IActionResult> Bus([FromBody] BusBindingModel busBindingModel) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var busId = await busService.CreateBus(busBindingModel); return(Ok()); }
public Bus Post([FromBody] Bus value) { return(busService.CreateBus(value)); }