public async Task <ActionResult> Create(RegistrarReclamacaoViewModel reclamacaoModel) { if (ModelState.IsValid) { await app.Add(reclamacaoModel, User.Identity.GetUserGuid()); return(RedirectToAction("Index")); } return(View(reclamacaoModel)); }
public async Task <ActionResult> Create() { var listaReus = await reuApp.List(); var model = new RegistrarReclamacaoViewModel { Reus = listaReus }; return(View(model)); }