public void TestBloodPosting()
        {
            BloodBL bl     = new BloodBL();
            int     result = bl.PostBlood(new BloodPosting(1, "B+", "AndhraPradesh", "Guntur", 522001, 9790703771), 7);

            Assert.AreEqual(1, result);
        }
 protected void btnSubmit_Click(object sender, EventArgs e)
 {
     try
     {
         BloodPosting blood = new BloodPosting();
         blood.State         = ddlState.SelectedValue.ToString();
         blood.Area          = ddlArea.SelectedValue.ToString();
         blood.Pincode       = int.Parse(txtPincode.Text.ToString());
         blood.BloodGroup    = ddlBloodGroup.SelectedValue.ToString();
         blood.ContactNumber = long.Parse(txtPhnNumber.Text.ToString());
         BloodBL bl     = new BloodBL();
         int     result = bl.PostBlood(blood, int.Parse(lblUserId.Text));
         if (result == 1)
         {
             Response.Write("<script>alert('Your blood details posted successfully');window.location.href='HomePage.aspx'</script>");
         }
     }
     catch (Exception ex)
     {
         Response.Write("<script>alert('" + ex.Message + "');</script>");
     }
 }