IOT Virtual Conference - Register now to book your ticket and get updates
x
CONGRATULATIONS! C# Corner Q1, 2021 MVPs Announced
Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forumguidelines
Methoun Ahmed
1.9k
145
62.1k
Cannot implicity convert type'System.web.Mvc.JsonResult
Nov 18 2017 3:02 AM
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);
}
}
Reply
Answers (
1
)
send refer code through whatsapp to invite them
Session id length and change session id after login