public static Guid GetResellerId() { if (HttpContext.Current.Session["resellerAccountData"] != null) { return ((AccountData)HttpContext.Current.Session["resellerAccountData"]).Id; } throw new ApplicationException("Reseller not found."); }