Exemplo n.º 1
0
        // GET: NPC

        public ActionResult Index()
        {
            var model = new NPCListViewModel();
            var NPCs  = npcRepository.GetAll();

            model.NPCs = NPCs.Select(p => NPCModel.FromDatabaseModel(p)).ToList();
            return(View(model));
        }
Exemplo n.º 2
0
        public ActionResult Edit(Guid id)
        {
            var model = NPCModel.FromDatabaseModel(npcRepository.GetNPC(id));

            return(View(model));
        }