private int BusinessNameId
{
get
{
if (string.IsNullOrEmpty(Session["BusinessId"].ToString()))
{
Response.Redirect("~/SessionExpired.aspx");
}
return int.Parse(Session["BusinessId"].ToString());
}
}
private int BusinessNameId
{
get
{
string businessId = Session["BusinessId"] as string;
if (string.IsNullOrEmpty(businessId))
{
Response.Redirect("~/SessionExpired.aspx");
}
return int.Parse(Session["BusinessId"].ToString());
}
}