Ejemplo n.º 1
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            Job = await _context.Jobs
                  .Include(j => j.Company)
                  .Include(j => j.JobTags)
                  .ThenInclude(x => x.Tag)
                  .AsNoTracking()
                  .FirstOrDefaultAsync(m => m.ID == id);

            if (Job == null)
            {
                return(NotFound());
            }

            var people = _context.People
                         .Include(i => i.PersonTags)
                         .ThenInclude(x => x.Tag)
                         .AsNoTracking();

            Candidates = await GetBest.Candidates(Job, people);

            return(Page());
        }
Ejemplo n.º 2
0
 public override StopRule <TAlgorithm, TProblem, TSolution> DeepClone()
 {
     return(new DistanceFromBestToOptimumIsLessThan <TAlgorithm, TProblem, TSolution>(Distance)
     {
         GetBest = (Func <TSolution>?)GetBest?.Clone(),
         GetOptimalCoordinates = (Func <double[]>?)GetOptimalCoordinates?.Clone()
     });
 }