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); }
public int SaveApprover(ApproverMaster approver) { ApproverMasterDAL approverDal = new ApproverMasterDAL(); return(approverDal.SaveApprover(approver)); }