public ActionResult Index1() { var ownerPanelModel = new OwnerPanelQuery(Current.UserId).Execute(); Session["username"] = Current.User.UserName; return View(ownerPanelModel); }
public ActionResult Index() { var ownerPanelModel = new OwnerPanelQuery(Current.UserId).Execute(); Session["username"] = Current.User.UserName; var folder = Server.MapPath("~/Swisskip/" + Current.User.UserName); //Getting Max. MB per trial version Master master = new SignInHandler().Find4(); ownerPanelModel.MyAccountWidget.MaxSize = master.Size + "MB"; ownerPanelModel.MyAccountWidget.Size = ((CalculateFolderSize(folder) / 1000) / (master.Size * 1024)).ToString("####0.00") +"%"; return View(ownerPanelModel); }