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"]))); }
public ActionResult ShowTotalPower() { Session["chosenACtion"] = "ShowTotalPower"; return(View("PowerView", CompanyDataHandler.GetTotalProducedPower((string)Session["företag"]))); }
public CompanyRepository() { //instanciere companydatahandler objekt companyDH = new CompanyDataHandler(); }