Exemplo n.º 1
0
        public ActionResult ApprovalIsAdopt(string keyValue, int type)
        {
            int State = 0;

            if (type == 3)
            {//人员
                var uentity = new CarUserBLL().GetEntity(keyValue);
                if (uentity != null)
                {
                    State = uentity.AppStatue;
                }
            }
            else if (type == 0)
            {//车辆
                var ventity = new VisitcarBLL().GetEntity(keyValue);
                if (ventity != null)
                {
                    State = ventity.AppStatue;
                }
            }
            return(Content(State.ToString()));
        }