private void DiscountStoreType() { int inAction = -1; try { DiscountManegar manager = new DiscountManegar(); DataTable dt = new DataTable(); DiscountZone objDiscountZone = new DiscountZone(); objDiscountZone.ProfileID = intProfileID; dt = manager.LoadDiscuntSoreType(objDiscountZone); if (dt.Rows.Count > 0) { DiscountType = Convert.ToInt32(dt.Rows[0]["DiscountStoreType"]); if (DiscountType == 1) { DiscountTypeName = "Premium"; } else if (DiscountType == 2) { DiscountTypeName = "Standard"; } else { /// } } else { Response.Redirect("StoreType.aspx"); } } catch (Exception ex) { lblSystemMessage.Text = ex.Message; } }
private void DiscountStoreType() { int inAction = -1; try { DiscountManegar manager = new DiscountManegar(); DataTable dt = new DataTable(); DiscountZone objDiscountZone = new DiscountZone(); objDiscountZone.ProfileID = ProfileID; dt = manager.LoadDiscuntSoreType(objDiscountZone); if (dt.Rows.Count > 0) { Response.Redirect("SelectDiscountType.aspx"); } else { } } catch (Exception ex) { lblSystemMessage.Text = ex.Message; } }