public async Task <bool> DeleteVariant(int id) { Variant varToDelete = _variantRepository.Get(id); if (varToDelete == null) { return(false); } _variantRepository.Delete(varToDelete); _variantRepository.Save(); return(true); }