public int GetWeeklyContactNeeds(LeadShiftInfo shiftInfo) { if (shiftInfo == null) throw new ArgumentNullException("shiftInfo"); return shiftInfo.RecordPerShift * GetLeadsLeftToGet(); }
/// <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 }); }