Example #1
0
        public int insertAuditCalender(AuditCalender calender)
        {
            int AuditCalenderID = 0;

            try
            {
                OrganizationHelper organizationhelper = new OrganizationHelper();
                foreach (var Year in calender.newyearid)
                {
                    calender.Year   = Year;
                    AuditCalenderID = organizationhelper.insertupdateAuditCalender(calender, 'I');
                }
            }
            catch
            {
                throw;
            }
            return(AuditCalenderID);
        }
Example #2
0
        public bool updateAuditCalender(AuditCalender calender)
        {
            int  AuditCalenderID = 0;
            bool updateResult    = false;

            try
            {
                OrganizationHelper organizationhelper = new OrganizationHelper();
                AuditCalenderID = organizationhelper.insertupdateAuditCalender(calender, 'U');
                if (AuditCalenderID != 0)
                {
                    updateResult = true;
                }
            }
            catch
            {
                throw;
            }
            return(updateResult);
        }