public void AddPhoneCallForward(int receptionistId, string phoneNo, string callDate, string callTime, 
        string callerName, int callForwardedTo)
    {
        AddPhoneCallForwardBO objAddPhoneCallForwardBO = new AddPhoneCallForwardBO();
        objAddPhoneCallForwardBO.receptionistId = receptionistId;
        objAddPhoneCallForwardBO.phoneNo = phoneNo;
        objAddPhoneCallForwardBO.callDate = callDate;
        objAddPhoneCallForwardBO.callTime = callTime;
        objAddPhoneCallForwardBO.callerName = callerName;
        objAddPhoneCallForwardBO.callForwardedTo = callForwardedTo;

        AddPhoneCallForwardDL objAddPhoneCallForwardDL = new AddPhoneCallForwardDL();
        objAddPhoneCallForwardDL.AddPhoneCallForward(objAddPhoneCallForwardBO);
    }
 public void AddPhoneCallForward(AddPhoneCallForwardBO objAddPhoneCallForwardBO)
 {
     SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ToString());
     SqlCommand cmd = new SqlCommand("spAddPhoneCallForward", conn);
     cmd.CommandType = CommandType.StoredProcedure;
     cmd.Parameters.Add("@receptionistId", objAddPhoneCallForwardBO.receptionistId);
     cmd.Parameters.Add("@phoneNo", objAddPhoneCallForwardBO.phoneNo);
     cmd.Parameters.Add("@callDate", objAddPhoneCallForwardBO.callDate);
     cmd.Parameters.Add("@callTime", objAddPhoneCallForwardBO.callTime);
     cmd.Parameters.Add("@callerName", objAddPhoneCallForwardBO.callerName);
     cmd.Parameters.Add("@callForwardedTo", objAddPhoneCallForwardBO.callForwardedTo);
     conn.Open();
     cmd.ExecuteNonQuery();
     conn.Close();
 }
    public void AddPhoneCallForward(AddPhoneCallForwardBO objAddPhoneCallForwardBO)
    {
        SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ToString());
        SqlCommand    cmd  = new SqlCommand("spAddPhoneCallForward", conn);

        cmd.CommandType = CommandType.StoredProcedure;
        cmd.Parameters.Add("@receptionistId", objAddPhoneCallForwardBO.receptionistId);
        cmd.Parameters.Add("@phoneNo", objAddPhoneCallForwardBO.phoneNo);
        cmd.Parameters.Add("@callDate", objAddPhoneCallForwardBO.callDate);
        cmd.Parameters.Add("@callTime", objAddPhoneCallForwardBO.callTime);
        cmd.Parameters.Add("@callerName", objAddPhoneCallForwardBO.callerName);
        cmd.Parameters.Add("@callForwardedTo", objAddPhoneCallForwardBO.callForwardedTo);
        conn.Open();
        cmd.ExecuteNonQuery();
        conn.Close();
    }
    public void AddPhoneCallForward(int receptionistId, string phoneNo, string callDate, string callTime,
                                    string callerName, int callForwardedTo)
    {
        AddPhoneCallForwardBO objAddPhoneCallForwardBO = new AddPhoneCallForwardBO();

        objAddPhoneCallForwardBO.receptionistId  = receptionistId;
        objAddPhoneCallForwardBO.phoneNo         = phoneNo;
        objAddPhoneCallForwardBO.callDate        = callDate;
        objAddPhoneCallForwardBO.callTime        = callTime;
        objAddPhoneCallForwardBO.callerName      = callerName;
        objAddPhoneCallForwardBO.callForwardedTo = callForwardedTo;

        AddPhoneCallForwardDL objAddPhoneCallForwardDL = new AddPhoneCallForwardDL();

        objAddPhoneCallForwardDL.AddPhoneCallForward(objAddPhoneCallForwardBO);
    }