public static MdlPartner GetOrgIdSessionPartner(string key) { MdlPartner model = null; if (HttpContext.Current.Session[key] != null) { model = (HttpContext.Current.Session[key]) as MdlPartner; return(model); } else { return(model); } }
public static void AddPartnerSession(string key, MdlPartner value) { HttpContext.Current.Session[key] = value; }