Пример #1
0
 /// <summary>
 /// code to add Payment plans ...
 /// </summary>
 void AddPlans()
 {
     try
     {
         objplanmaster.PlanName   = txtplan.Value;
         objplanmaster.PropertyId = Convert.ToInt32(ddlproperties.SelectedValue);
         int Issuccessfull = InsertionLayer.PaymentPlans(objplanmaster);
         if (Issuccessfull == 1)
         {
             lblmsg.Text   = "Your Plan Have Successfully Submitted....";
             txtplan.Value = "";
         }
         else
         {
             lblmsg.Text = "Your Plan Have Not Submitted ... Please Try Again Later...";
         }
     }
     catch (Exception ex)
     {
         lblmsg.Text = ex.Message;
     }
 }