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