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);
}


Madan ShekarRank #428 · 5.9K reputationPosted Mar 5, 2019, 7:18 PM EST
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 5, 2019, 8:19 PM EST