예제 #1
0
        public async Task <Candidate> AddCandidateTestAsync(Candidate cdt)
        {
            Entities.Candidate candidate = new Entities.Candidate()
            {
                FirstName = cdt.FirstName,
                LastName  = cdt.LastName,
                TestId    = cdt.Test.Id
            };


            _context.Candidate.Add(candidate);
            await _context.SaveChangesAsync();

            return(cdt);
        }
예제 #2
0
        public EditCandidateViewModel(Entities.Candidate candidate)
        {
            Id              = candidate.Id;
            Source          = candidate.Source;
            Qualification   = candidate.Qualification;
            TotalExperience = candidate.TotalExperience;
            ResumePath      = candidate.ResumePath;
            PhotoPath       = candidate.PhotoPath;
            Status          = candidate.Status;
            Comments        = candidate.Comments;
            CurrentCTC      = candidate.CurrentCTC;
            ExpectedCTC     = candidate.ExpectedCTC;
            Person          = candidate.Person;
            RecievedOn      = candidate.RecievedOn;

            CreatedOn = DateTime.UtcNow;
        }
예제 #3
0
 public CandidateDetailsViewModel(Entities.Candidate candidate)
 {
     Id              = candidate.Id;
     Code            = candidate.Code;
     Source          = candidate.Source;
     Qualification   = candidate.Qualification;
     TotalExperience = candidate.TotalExperience;
     ResumePath      = candidate.ResumePath;
     PhotoPath       = candidate.PhotoPath;
     Status          = candidate.Status;
     Comments        = candidate.Comments;
     CurrentCTC      = candidate.CurrentCTC;
     ExpectedCTC     = candidate.ExpectedCTC;
     PersonId        = candidate.PersonId;
     Person          = candidate.Person;
     RecievedOn      = candidate.RecievedOn;
     CreatedOn       = candidate.CreatedOn;
 }