Rijen Juni

Rijen Juni

  • NA
  • 16
  • 7.2k

How to convert query in MVC4

Aug 12 2015 10:56 PM
how to convert this query in MVC C# "SELECT NamaBulan FROM PARAMETER WHERE Bulan=bulan.1"
i was try like this
 
if (ModelState.IsValid)
{ var bulan1= DateTime.Now.Month.ToString();
var bulan2= from z in p.NamaBulan where bulan1==p.Bulan
select z;
search.Day = bulan2.ToString();
 
but still not working If youcan solve this problem please tell me and I will be appreciate it
Thanks 

Answers (1)