コード例 #1
0
        public ActionResult ShowPowerOfYear()
        {
            Session["chosenACtion"] = "ShowPowerOfYear";
            var date = String.Format("{0} {1} {2} {3}", DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.AddDays(-1).Day, DateTime.Today.Hour);

            return(View("PowerView", CompanyDataHandler.GetProducedPowerOfYear(date, (string)Session["företag"])));
        }
コード例 #2
0
 public ActionResult ShowTotalPower()
 {
     Session["chosenACtion"] = "ShowTotalPower";
     return(View("PowerView", CompanyDataHandler.GetTotalProducedPower((string)Session["företag"])));
 }
コード例 #3
0
 public CompanyRepository()
 {
     //instanciere companydatahandler objekt
     companyDH = new CompanyDataHandler();
 }