Example #1
0
        public ActionResult IsLoginIdExist(string id)
        {
            string[] info    = id.Split(',');
            string   loginId = id;
            int      userId  = 0;

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