public ActionResult GrafikForm(string Giris, string Cikis) { DateTime girisZamani = DateTime.ParseExact(Giris, "dd/MM/yyyy HH:mm", null); DateTime cikisZamani = DateTime.ParseExact(Cikis, "dd/MM/yyyy HH:mm", null); List <int> arabaSayisi = new List <int>(); List <string> etiketler = new List <string>(); foreach (var i in GrafikVeriOlusturucu.GunlereGoreGirenArac(7, 'p', girisZamani, cikisZamani)) { arabaSayisi.Add((int)(i.Deger)); etiketler.Add(GrafikVeriOlusturucu.GrafikVeriEtiketiOlustur(i, "dd/MM", false)); } ViewBag.Etiketler = etiketler; return(View("GrafikCiz", arabaSayisi)); }
public ActionResult AylikOrtalama(int id) { return(View(GrafikVeriOlusturucu.AyIcindeOrtalamaBul(GrafikVeriOlusturucu.GunlereGoreGirenArac(id, 'p', new DateTime(2018, 4, 01, 0, 0, 0), new DateTime(2018, 6, 30, 23, 59, 59))))); }
public ActionResult Gunluk(int id) { return(View(GrafikVeriOlusturucu.GunlereGoreGirenArac(id, 'p', new DateTime(2018, 4, 01, 0, 0, 0), new DateTime(2018, 6, 30, 23, 59, 59)))); }