Exemplo n.º 1
0
        public async Task <ActionResult> PartyEdit(string partyID)
        {
            var model = await partyRepo.GetPartyAsync(partyID);

            ViewData["isRealOnly"] = (model != null).ToString().ToLower();//不为空时前台控件只读
            return(View(model));
        }