Example #1
0
        public async Task <IActionResult> SubmitVehicle([FromBody] VehicleViewModel viewModel)
        {
            Vehicle vehicle = viewModel.GetDbModel();

            cateringDbContext.Add(vehicle);
            await cateringDbContext.SaveChangesAsync();

            return(Ok());
        }