Example #1
0
        public int GetWeeklyContactNeeds(LeadShiftInfo shiftInfo)
        {
            if (shiftInfo == null)
                throw new ArgumentNullException("shiftInfo");

            return shiftInfo.RecordPerShift * GetLeadsLeftToGet();
        }
Example #2
0
        /// <summary>
        /// return number of contacts needed per year base on current lead shift information and lead target
        /// </summary>
        /// <param name="shiftInfo"></param>
        /// <returns></returns>
        public int GetYearlyContactNeeds(LeadShiftInfo shiftInfo)
        {
            if (shiftInfo == null)
                throw new ArgumentNullException("shiftInfo");

            return shiftInfo.ContactRatePer3HrShift * shiftInfo.CallCycleWeeks * GetLeadTarget();
        }
        public IHttpActionResult PutShift(LeadShiftInfo shift)
        {
            _leadPersonalService.UpdateShiftInfo(shift);

            return Ok(new
            {
                data = shift
            });
        }