Exemplo n.º 1
0
        public ActionResult addAll(_class info)
        {
            ClassManager bll = new ClassManager();
            _class       cla = new _class()
            {
                Morning         = Request.Form["Morning"],
                Afertnoon       = Request.Form["Afertnoon"],
                UserIde         = Convert.ToInt32(Request.Form["UserIde"]),
                UserId          = Convert.ToInt32(Request.Form["UserId"]),
                DataTime        = Convert.ToDateTime(Request.Form["DataTime"]),
                require         = Request.Form["require"],
                class_Condition = "可见"
            };
            var add = bll.Add(cla);

            if (add)
            {
                return(Redirect("/LiuYi/workhou/addAll"));
            }
            else
            {
                return(Redirect("/LiuYi/workhou/deleteIndex"));
            }
        }