public async Task <IActionResult> SubmitVehicle([FromBody] VehicleViewModel viewModel) { Vehicle vehicle = viewModel.GetDbModel(); cateringDbContext.Add(vehicle); await cateringDbContext.SaveChangesAsync(); return(Ok()); }
public async Task <IActionResult> SubmitVehicle([FromBody] VehicleViewModel viewModel) { Vehicle vehicle = viewModel.GetDbModel(); cateringDbContext.Add(vehicle); await cateringDbContext.SaveChangesAsync(); return(Ok()); }