Esempio n. 1
0
        public static int?NameValidation(string name)
        {
            int?result = 0;

            using (var db = new MarkomApplicationDBEntities())
            {
                var res = db.spProductCountName(name).FirstOrDefault();
                result = res;
            }

            return(result);
        }