Exemple #1
0
        public async Task <IActionResult> AddOrEditVehicleAsync(VehicleViewModel vehicle)
        {
            bool result = await _vehicleService.AddOrEditVehicleAsync(vehicle);

            if (result == false)
            {
                return(BadRequest("Operation Failed!"));
            }
            return(Ok("Operation Successful."));
        }