/// <summary>
 /// The get count.
 /// </summary>
 /// <param name="departmentId">
 /// The department id.
 /// </param>
 /// <param name="startDateTime">
 /// The start date time.
 /// </param>
 /// <param name="endDateTime">
 /// The end date time.
 /// </param>
 /// <param name="hospitalizationBaseCollection">
 /// The hospitalization base collection.
 /// </param>
 /// <returns>
 /// The <see cref="int"/>.
 /// </returns>
 public int GetCount(
     int departmentId,
     DateTime startDateTime,
     DateTime endDateTime,
     IList <HospitalizationBase> hospitalizationBaseCollection)
 {
     return(DaybedCommonOperationProcessor.GetDaybedCount(
                departmentId,
                startDateTime,
                endDateTime,
                hospitalizationBaseCollection));
 }
        /// <summary>
        /// The get count.
        /// </summary>
        /// <param name="departmentId">
        /// The department id.
        /// </param>
        /// <param name="startDateTime">
        /// The start date time.
        /// </param>
        /// <param name="endDateTime">
        /// The end date time.
        /// </param>
        /// <param name="hospitalizationBaseCollection">
        /// The hospitalization base collection.
        /// </param>
        /// <returns>
        /// The <see cref="int"/>.
        /// </returns>
        public int GetCount(
            int departmentId,
            DateTime startDateTime,
            DateTime endDateTime,
            IList <HospitalizationBase> hospitalizationBaseCollection)
        {
            // BeginOfTheMonth (початок місяця)

            /*Если отчет выгружается за 3.04.16
             * начало месяца 1.04.16 8:00:00 - 4.04.16 7:59:00
             */
            var beginOfTheMonth = new DateTime(startDateTime.Year, startDateTime.Month, 1);
            var fromDateTime    = new DateTime(beginOfTheMonth.Year, beginOfTheMonth.Month, beginOfTheMonth.Day, 8, 0, 0);
            var toDateTime      = new DateTime(startDateTime.Year, startDateTime.Month, startDateTime.Day, 7, 59, 0);

            return(DaybedCommonOperationProcessor.GetDaybedCount(
                       departmentId,
                       fromDateTime,
                       toDateTime,
                       hospitalizationBaseCollection));
        }