Exemplo n.º 1
0
 public IActionResult Create(Portfolio portfolio)
 {
     if (ModelState.IsValid)
     {
         _portfolioService.Create(portfolio);
         _portfolioService.Commit();
         return(RedirectToAction("Index"));
     }
     return(View(portfolio));
 }