예제 #1
0
        public ActionResult CompanyEdit(Company model)
        {
            string result = "失败";

            model.lastOperateTime = DateTime.Now;
            model.operatorTime    = DateTime.Now;
            int count = _iCrmService.AddCompany(model);

            if (count > 0)
            {
                result = "成功";
            }
            ViewData["info"] = "" + (count > 0 ? "1" : "0") + "|" + result + "|Customer/CompanyIndex";
            return(View("SuccessScript"));
        }