Esempio n. 1
0
        public ActionResult CatTeam()
        {
            List <organization> AllOrgan = new List <organization>();

            AllOrgan = Op_Organization.FindAllOrgan();
            return(View(AllOrgan));
        }
Esempio n. 2
0
        public ActionResult RegisterTeam(string oname, string time, string creator, string desc, string task, string contact)
        {
            AjaxResult ajaxResult = new AjaxResult();

            organization or = new organization();

            or.oname       = oname;
            or.time        = time;
            or.creator     = creator;
            or.description = desc;
            or.task        = task;
            or.contact     = contact;
            if (Op_Organization.Add(or))
            {
                ajaxResult.Result    = DoResult.Success;
                ajaxResult.PromptMsg = "注册成功";
            }
            else
            {
                ajaxResult.Result    = DoResult.Failed;
                ajaxResult.PromptMsg = "注册失败";
            }
            return(Json(ajaxResult));
        }