public bool AddBaseMonthlyInformation(BaseMonthlyInformation baseMonthlyInformation) { baseMonthlyInformation.MainOfficeTypeID = this.MainOfficeTypeID; BaseMonthlyInformationDBAccess baseMonthlyInformationDBAccess = new BaseMonthlyInformationDBAccess(); if (baseMonthlyInformationDBAccess.Insert(baseMonthlyInformation)>0) return (true); return (false); }
public bool AddBaseMonthlyInformation(BaseMonthlyInformation baseMonthlyInformation) { baseMonthlyInformation.YearTypeID = this.YearTypeID; BaseMonthlyInformationDBAccess baseMonthlyInformationDBAccess = new BaseMonthlyInformationDBAccess(); if (baseMonthlyInformationDBAccess.Insert(baseMonthlyInformation) > 0) { return(true); } return(false); }
// This fuction does not contain any business logic, it simply returns the // list of baseMonthlyInformations, we can put some logic here if needed public Int64 Insert(BaseMonthlyInformation baseMonthlyInformation) { return(baseMonthlyInformationDb.Insert(baseMonthlyInformation)); }