private void SaveData(LifeLineDbContext context)
        {
            Consignor_Master obj = new Consignor_Master();

            obj.consignorName  = string.IsNullOrWhiteSpace(txtCompanyName.Text) ? null : txtCompanyName.Text;
            obj.firstName      = string.IsNullOrWhiteSpace(txtFirstName.Text) ? null : txtFirstName.Text;
            obj.lastName       = string.IsNullOrWhiteSpace(txtLastName.Text) ? null : txtLastName.Text;
            obj.companyAddress = string.IsNullOrWhiteSpace(txtAddress.Text) ? null : txtAddress.Text;
            obj.city           = string.IsNullOrWhiteSpace(txtCity.Text) ? null : txtCity.Text;
            obj.stateId        = ddlState.SelectedIndex == 0 ? null : (int?)Convert.ToInt32(ddlState.SelectedValue);
            obj.pincode        = string.IsNullOrWhiteSpace(txtPincode.Text) ? null : txtPincode.Text;
            obj.phoneNumber    = string.IsNullOrWhiteSpace(txtPhone.Text) ? null : txtPhone.Text;
            obj.mobileNumber   = string.IsNullOrWhiteSpace(txtMobile.Text) ? null : txtMobile.Text;
            obj.faxNumber      = string.IsNullOrWhiteSpace(txtFaxNo.Text) ? null : txtFaxNo.Text;
            obj.emailAddress   = string.IsNullOrWhiteSpace(txtEmail.Text) ? null : txtEmail.Text;
            obj.vatNumber      = string.IsNullOrWhiteSpace(txtVatNo.Text) ? null : txtVatNo.Text;
            obj.cstNumber      = string.IsNullOrWhiteSpace(txtCstNo.Text) ? null : txtCstNo.Text;
            obj.entryBy        = SessionHelper.UserId;
            obj.entryDate      = DateTime.Now;
            obj.updatedOn      = null;

            context.AddToConsignor_Master(obj);
        }