public ActionResult GetChats(RegisterModel model) { var token = GetUserToken(); if (string.IsNullOrEmpty(token)) { return(Json(new { status = "UnAuthorized" }, JsonRequestBehavior.AllowGet)); } var res = _routeManager.GetChats(token, model.Mobile); return(Json(res, JsonRequestBehavior.AllowGet)); }