public static bool CheckProductNameAvailability(string Name) { if (ProductTypeRepository.FindByName(Name) == null) { return(true); } return(false); }