コード例 #1
0
        public int SaveApprover(List <ApproverMaster> approverList)
        {
            int totalRowAffected          = 0;
            ApproverMasterDAL approverDal = new ApproverMasterDAL();

            foreach (ApproverMaster approver in approverList)
            {
                int rowAffected = 0;
                rowAffected = approverDal.SaveApprover(approver);

                totalRowAffected = totalRowAffected + rowAffected;
            }

            return(totalRowAffected);
        }
コード例 #2
0
        public int SaveApprover(ApproverMaster approver)
        {
            ApproverMasterDAL approverDal = new ApproverMasterDAL();

            return(approverDal.SaveApprover(approver));
        }