Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Reply
Cannot implicity convert type'System.web.Mvc.JsonResult
Methoun Ahmed
6 years ago
208
Reply
How to solved the problem.
Cannot implicity convert type'System.web.Mvc.JsonResult 'to 'System.Action
*****Here is my code********
public Action GetEmployee()
{
using (MyDatabaseEntities dc = new MyDatabaseEntities())
{
var employees = dc.Employees.OrderBy(a => a.FirstName).ToList();
return Json(new { data = employees }, JsonRequestBehavior.AllowGet);
}
}
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
send refer code through whatsapp to invite them
Session id length and change session id after login