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

            return(Ok());
        }
Example #2
0
 public Bus Post([FromBody] Bus value)
 {
     return(busService.CreateBus(value));
 }