public Task <Result <Applicant> > ModifyApplicant(int applicantId, ApplicantDto update) =>
        TryCatch(async() =>
        {
            await ValidateApplicantDtoAsync(update);

            var applicant = await _applicantRepository.FindById(applicantId);
            if (applicant == null)
            {
                return(Result.Failure <Applicant>($"applicant {applicantId} not found!"));
            }

            Apply(applicant, update);

            await _applicantRepository.Update(applicant);
            return(Result.Success(applicant));
        });
 public Applicant Get(int id)
 {
     return(appRepo.FindById(id));
 }