public int RegisterEmployeeReceptionist(int receptionistEmpId, string marks10, string marks12)
    {
        RegisterEmployeeReceptionistBO objRegisterEmployeeReceptionistBO = new RegisterEmployeeReceptionistBO();
        objRegisterEmployeeReceptionistBO.receptionistEmpId = receptionistEmpId;
        objRegisterEmployeeReceptionistBO.marks10 = marks10;
        objRegisterEmployeeReceptionistBO.marks12 = marks12;

        RegisterEmployeeReceptionistDL objRegisterEmployeeReceptionistDL = new RegisterEmployeeReceptionistDL();
        return objRegisterEmployeeReceptionistDL.RegisterEmployeeReceptionist(objRegisterEmployeeReceptionistBO);
    }
Beispiel #2
0
    public int RegisterEmployeeReceptionist(int receptionistEmpId, string marks10, string marks12)
    {
        RegisterEmployeeReceptionistBO objRegisterEmployeeReceptionistBO = new RegisterEmployeeReceptionistBO();

        objRegisterEmployeeReceptionistBO.receptionistEmpId = receptionistEmpId;
        objRegisterEmployeeReceptionistBO.marks10           = marks10;
        objRegisterEmployeeReceptionistBO.marks12           = marks12;

        RegisterEmployeeReceptionistDL objRegisterEmployeeReceptionistDL = new RegisterEmployeeReceptionistDL();

        return(objRegisterEmployeeReceptionistDL.RegisterEmployeeReceptionist(objRegisterEmployeeReceptionistBO));
    }
 public int RegisterEmployeeReceptionist(RegisterEmployeeReceptionistBO objRegisterEmployeeReceptionistBO)
 {
     SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ToString());
     SqlCommand cmd = new SqlCommand("spRegisterReceptionist", conn);
     cmd.CommandType = CommandType.StoredProcedure;
     cmd.Parameters.Add("@receptionistEmpId", objRegisterEmployeeReceptionistBO.receptionistEmpId);
     cmd.Parameters.Add("@marks10", objRegisterEmployeeReceptionistBO.marks10);
     cmd.Parameters.Add("@marks12", objRegisterEmployeeReceptionistBO.marks12);
     conn.Open();
     int receptionistId = Convert.ToInt32(cmd.ExecuteScalar());
     conn.Close();
     return receptionistId;
 }
Beispiel #4
0
    public int RegisterEmployeeReceptionist(RegisterEmployeeReceptionistBO objRegisterEmployeeReceptionistBO)
    {
        SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ToString());
        SqlCommand    cmd  = new SqlCommand("spRegisterReceptionist", conn);

        cmd.CommandType = CommandType.StoredProcedure;
        cmd.Parameters.Add("@receptionistEmpId", objRegisterEmployeeReceptionistBO.receptionistEmpId);
        cmd.Parameters.Add("@marks10", objRegisterEmployeeReceptionistBO.marks10);
        cmd.Parameters.Add("@marks12", objRegisterEmployeeReceptionistBO.marks12);
        conn.Open();
        int receptionistId = Convert.ToInt32(cmd.ExecuteScalar());

        conn.Close();
        return(receptionistId);
    }