Exemplo n.º 1
0
 public ActionResult checkUserName(string loginuserName, int user_id)
 {
     // if (userbll.getUserBYName(loginuserName) == null)
     if (userbll.getUserByID(user_id) == null)//check if it creat only
     {
         return(Json(true, JsonRequestBehavior.AllowGet));
     }
     else
     {
         return(Json(false, JsonRequestBehavior.AllowGet));
     }
 }