public ActionResult AddProtein(int amount)
 {
     _proteinTrackingService.AddProtein(amount);
     ViewBag.Total = _proteinTrackingService.Total;
     ViewBag.Goal  = _proteinTrackingService.Goal;
     return(View("Index"));
 }
Exemplo n.º 2
0
 public ActionResult AddProtein(int proteinGrams)
 {
     _proteinModel.AddProtein(proteinGrams);
     return(View("Index"));
 }