Exemplo n.º 1
0
        // GET: HeadStage/AboutUs
        public ActionResult AboutUs()
        {
            var Company = CompanyBz.Get(o => true);

            ViewBag.Generalization = Company.Generalization;
            ViewBag.Culture        = Company.Culture;

            var Employee = EmployeeBz.LoadAll(o => o.isValid == true);

            return(View(Employee));
        }
Exemplo n.º 2
0
        public ActionResult SaveCompany(Company entity)
        {
            bool isSuccess = CompanyBz.Update(entity);

            if (isSuccess)
            {
                ViewBag.Msg = "保存成功!";
            }
            else
            {
                ViewBag.Msg = "保存失败!";
            }
            return(View("Company", entity));
        }
Exemplo n.º 3
0
        // GET: BackStage/AboutUs
        public ActionResult Company()
        {
            var model = CompanyBz.Get(o => true);

            return(View(model));
        }