public ActionResult IsUserEmailIdExist(string id) { string[] info = id.Split(','); string emailId = id; int userId = 0; if (info.Length == 2) { emailId = info[0]; userId = info[1] != "" ? Convert.ToInt32(info[1]) : userId; } return(Json(companyUtil.GetEmailByUserId(userId, emailId) == null ? false : true)); }