예제 #1
0
        public async Task <ActionResult> Create(RegistrarReclamacaoViewModel reclamacaoModel)
        {
            if (ModelState.IsValid)
            {
                await app.Add(reclamacaoModel, User.Identity.GetUserGuid());

                return(RedirectToAction("Index"));
            }

            return(View(reclamacaoModel));
        }
예제 #2
0
        public async Task <ActionResult> Create()
        {
            var listaReus = await reuApp.List();

            var model = new RegistrarReclamacaoViewModel
            {
                Reus = listaReus
            };

            return(View(model));
        }