Example #1
0
        public bool AddDepartmentMonthlyInformation(DepartmentMonthlyInformation departmentMonthlyInformation)
        {
            departmentMonthlyInformation.MonthTypeID = this.MonthTypeID;
            DepartmentMonthlyInformationDBAccess departmentMonthlyInformationDBAccess = new DepartmentMonthlyInformationDBAccess();

            if (departmentMonthlyInformationDBAccess.Insert(departmentMonthlyInformation) > 0)
            {
                return(true);
            }
            return(false);
        }
	// This fuction does not contain any business logic, it simply returns the 
	// list of departmentMonthlyInformations, we can put some logic here if needed 
	public Int64 Insert(DepartmentMonthlyInformation departmentMonthlyInformation)
	{
		return departmentMonthlyInformationDb.Insert(departmentMonthlyInformation);
	}