Example #1
0
        public ActionResult IsCompanyNameExist(string id)
        {
            //id="country_name,country_id"
            string[] info        = id.Split(',');
            string   companyName = id;
            int      companyId   = 0;

            if (info.Length == 2)
            {
                companyName = info[0];
                companyId   = info[1] != "" ? Convert.ToInt32(info[1]) : companyId;
            }
            return(Json(companyUtil.GetCompanyByCountryId(companyId, companyName) == null ? false : true));
        }