public void AddBotCounter(int modelClickCount) { BotButtonCounter model = new BotButtonCounter() { ClickCount = modelClickCount }; this.Context.BotButtonCounters.Add(model); this.Context.SaveChanges(); }
public ActionResult Index(BotButtonCounter model) { model.ClickCount = 1; this.firstTestService.AddBotCounter(model.ClickCount); return(View(model)); }
public ActionResult Index() { var model = new BotButtonCounter(); return(View(model)); }