예제 #1
0
        public async Task <bool> CreateVehicleMake(VehicleMake vehicleMakeToInsert)
        {
            // Validation logic
            if (!ValidateVehicleMake(vehicleMakeToInsert))
            {
                return(false);
            }

            // Database logic
            bool result = await _vehicleMakeRepository.CreateVehicleMake(vehicleMakeToInsert);

            return(result);
        }