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); } }
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); } }
public SummarySuggestionDto SuggestForUser(Int32 userId) { IEnumerable <SummarySuggestion> summarySuggestions = GetAllReadyForUser(userId); return(SummarySuggestionDto.Create(summarySuggestions.FirstOrDefault())); }