protected override ValidationResult IsValid(object value, ValidationContext validationContext)
        {
            CoreWebDbEntities db             = new CoreWebDbEntities();
            string            userEmailValue = Convert.ToString(value);
            int count = db.tbl_User.Where(x => x.UserEmail == userEmailValue).ToList().Count();

            if (count != 0)
            {
                return(new ValidationResult("User already exist with this Email ID"));
            }
            return(ValidationResult.Success);
        }
        protected override ValidationResult IsValid(object value, ValidationContext validationContext)
        {
            CoreWebDbEntities db = new CoreWebDbEntities();

            string urlValue = Convert.ToString(value);
            int    count    = db.tbl_Url.Where(x => x.Url == urlValue).ToList().Count();

            if (count != 0)
            {
                return(new ValidationResult("Url Already Exist"));
            }
            return(ValidationResult.Success);
        }