コード例 #1
0
        public void Skip(Guid token, Int32 suggestionId)
        {
            var suggestion = Recruiter.SummarySuggestions
                             .FirstOrDefault(s => s.Id == suggestionId);

            if (!(suggestion is null))
            {
                Recruiter.SummarySuggestions.Remove(suggestion);
                suggestion = new SummarySuggestionDto(suggestion.Id, suggestion.Summary, SuggestionStatus.Skipped);
            }
        }
コード例 #2
0
        public void Accept(Guid token, Int32 suggestionId)
        {
            var suggestion = Recruiter.SummarySuggestions
                             .FirstOrDefault(s => s.Id == suggestionId);

            if (!(suggestion is null))
            {
                Recruiter.SummarySuggestions.Remove(suggestion);
                if (suggestion.Summary.Id == 1)
                {
                    Candidate.LikeTest = true;
                }
                suggestion = new SummarySuggestionDto(suggestion.Id, suggestion.Summary, SuggestionStatus.Accepted);
            }
        }
コード例 #3
0
        public SummarySuggestionDto SuggestForUser(Int32 userId)
        {
            IEnumerable <SummarySuggestion> summarySuggestions = GetAllReadyForUser(userId);

            return(SummarySuggestionDto.Create(summarySuggestions.FirstOrDefault()));
        }