List become empty every time I add an Item on it from Controller – Asp.net
I start learning asp.net core MVC for practice purposes I created one HomeController in which I have two methods [Route("[controller]/[action]")] public class HomeController : Controller { private readonly JobRepository _jobRepository; public HomeController() { _jobRepository = new JobRepository(); } [HttpPost] public…