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); }
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; }
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; }