yuznumara
yuznumara

Reputation: 145

Loop with jquery on mvc

In my project, The costumers can do discount to their products for a while. When That while finishs, Discount finishs. Every second or minute, The Program must control the discount finish dates. But If I want to do that, I have to reload the page again everytime. So How can i do that with js on mvc ?

Upvotes: 0

Views: 43

Answers (1)

Travis Acton
Travis Acton

Reputation: 4430

You use ajax calls from your front end and JsonResult return types in your controllers. Here is a tutorial to get you going: http://www.c-sharpcorner.com/UploadFile/2ed7ae/jsonresult-type-in-mvc/

Upvotes: 1

Related Questions