Please find the Code below
private DBContext dbContext = new DBContext();
public List<CompleteForm> GetComppleteFormDetails()
{
using (var dbContext = new DBContext())
{
var completeForm = dbContext.Database.SqlQuery<CompleteForm>("exec USP_GetFullDetails").ToList<CompleteForm>();
return completeForm.ToList();
}
}
private DBContext dbContext = new DBContext();
public List<CompleteForm> GetComppleteFormDetails()
{
using (var dbContext = new DBContext())
{
var completeForm = dbContext.Database.SqlQuery<CompleteForm>("exec USP_GetFullDetails").ToList<CompleteForm>();
return completeForm.ToList();
}
}
No comments:
Post a Comment