/// <summary>
        /// Creator: Jordan Lindo
        /// Created: 3//2020
        /// Approver: Chase Schulte
        ///
        /// Inserts a base scchedule and deacitveats the old schedule
        /// </summary>
        /// <remarks>
        /// Updater: NA
        /// Updated: NA
        /// Update: NA
        /// </remarks>
        /// <param name="baseScheduleVM"></param>
        /// <returns></returns>
        public int AddBaseSchedule(BaseScheduleVM baseScheduleVM)
        {
            int  result    = 0;
            bool goodCount = true;

            foreach (BaseScheduleLine line in baseScheduleVM.BaseScheduleLines)
            {
                if (goodCount && line.Count < 0)
                {
                    goodCount = false;
                }
            }

            try
            {
                if (goodCount)
                {
                    result = _baseScheduleAccessor.InsertBaseScheduleVM(baseScheduleVM);
                }
                else
                {
                    throw new ApplicationException("A count entered is invalid");
                }
            }
            catch (Exception ex)
            {
                throw new ApplicationException("Base Schedule not added.", ex);
            }
            return(result);
        }