public List<tbl_State> Getstate(int StateId)
{
List<tbl_State> statlst = new List<tbl_State>();
using (AdminapprovalDBEntities1 dbcontext = new AdminapprovalDBEntities1())
{
statlst = dbcontext.tbl_State.Where(x => x.Country_ID == StateId).FirstOrDefault().ToList();
}
return statlst;
}
How to make as list selection
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Vinay SinghRank #604 · 4K reputationPosted Aug 17, 2016, 3:25 AM EDT
{
List
using (AdminapprovalDBEntities1 dbcontext = new AdminapprovalDBEntities1())
{
statlst = dbcontext.tbl_State.Where(x => x.Country_ID == StateId).ToList();
}
return statlst;
}
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Aug 17, 2016, 4:49 AM EDT