/// <summary> /// Creates the gain short screener. /// </summary> /// <param name="visit">The visit.</param> /// <returns>A GainShortScreener.</returns> public GainShortScreener CreateGainShortScreener( Visit visit ) { var activityType = _lookupValueRepository.GetLookupByWellKnownName<ActivityType> ( WellKnownNames.VisitModule.ActivityType.GainShortScreener ); var gainShortScreener = new GainShortScreener ( visit, activityType ); _gainShortScreenerRepository.MakePersistent ( gainShortScreener ); return gainShortScreener; }
/// <summary> /// Creates the gain short screener. /// </summary> /// <param name="visit">The visit.</param> /// <returns>A GainShortScreener.</returns> public GainShortScreener CreateGainShortScreener(Visit visit) { var activityType = _lookupValueRepository.GetLookupByWellKnownName <ActivityType> (WellKnownNames.VisitModule.ActivityType.GainShortScreener); var gainShortScreener = new GainShortScreener(visit, activityType); _gainShortScreenerRepository.MakePersistent(gainShortScreener); return(gainShortScreener); }
/// <summary> /// Destroys the GainShortScreener. /// </summary> /// <param name="gainShortScreener">The gain short screener.</param> public void DestroyGainShortScreener(GainShortScreener gainShortScreener) { _gainShortScreenerRepository.MakeTransient(gainShortScreener); }
/// <summary> /// Destroys the GainShortScreener. /// </summary> /// <param name="gainShortScreener">The gain short screener.</param> public void DestroyGainShortScreener( GainShortScreener gainShortScreener ) { _gainShortScreenerRepository.MakeTransient ( gainShortScreener ); }