vadivelu s

vadivelu s

  • NA
  • 3
  • 486

how to make as list selection

Aug 17 2016 7:22 AM
public List&lt;tbl_State&gt; Getstate(int StateId)<br /> {<br /> List&lt;tbl_State&gt; statlst = new List&lt;tbl_State&gt;();<br /> using (AdminapprovalDBEntities1 dbcontext = new AdminapprovalDBEntities1())<br /> {<br /> statlst = dbcontext.tbl_State.Where(x =&gt; x.Country_ID == StateId).FirstOrDefault().ToList();<br /> <br /><br /> }<br /> return statlst;<br /> }

Answers (2)