ASP.NET MVC AJAX returns 404 or 500

来源:互联网 发布:python cffi 编辑:程序博客网 时间:2024/05/17 22:37
[HttpPost]        //[ValidateAntiForgeryToken] This attribute prevent the function to run properly        public ActionResult UpdateStatus(string status, string id)        {            JobRepository repo = new JobRepository();            int jobId = Int32.Parse(id);            Job job = repo.Find(jobId);            job.CurrStatus = Int32.Parse(status);            repo.Update(job);            return Content("");        }

0 0