Esempio n. 1
0
        public ActionResult ModifyCountry(string id)
        {
            string strErrText;

            //生成Model数据
            DDSystem country = new DDSystem();
            Country  data    = country.LoadCountry(long.Parse(id), LoginAccountId, LoginStaffName, out strErrText);

            if (data == null)
            {
                throw new Exception(strErrText);
            }

            CountryViewModel model = new CountryViewModel();

            model.Id     = data.Id;
            model.Name   = data.Name;
            model.Remark = data.Remark;

            return(View(model));
        }