TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
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
Forums
Monthly Leaders
Forum guidelines
San
NA
804
325k
Stored Procedure Call in Web API using DBContext.
Mar 5 2019 10:54 AM
Please check the below code it is working fine but i want the without model name Account .
In Procedure join the tables but usig _DBcontext.Account. then display only Account
table column.
[HttpGet("GetAccount")]
public async Task GetAccount(int accountid)
{
SqlParameter adAccount = new SqlParameter("@AccountID", accountid);
var query = _DBcontext.Account.FromSql(@"EXECUTE [dbo].[sp_GetAccount] @ID", Accountad);
var list = query.ToList();
return Json(list);
}
Reply
Answers (
2
)
How to consume these JSON data at ASP.Net, display in grid?
how to get linkedin connection basic information