// GET: Cow public ActionResult Index() { CowModel Cow1 = new CowModel() { Name = "Alma", Weight = 120 }; return(View("Cow name: {0}. Cow weight: {1}.", Cow1.Name, Cow1.Weight)); }
public async Task <IActionResult> SetCowCount(int userId, CowModel cow) { var cowCountNew = await repository.SetCowCount(userId, cow.CowCount); return(Ok(cowCountNew)); }