public async Task <ActionResult> AddCareerProfile(AppliedJobHistory careerProfile)
        {
            _unitOfWork.HistoryRepository.AddHistory(careerProfile);

            await _unitOfWork.Complete();

            return(Ok());
        }
        public async Task <ActionResult> UpdateCareerProfile(AppliedJobHistory careerProfile)
        {
            _unitOfWork.HistoryRepository.UpdateHistory(careerProfile);

            if (await _unitOfWork.Complete())
            {
                return(NoContent());
            }

            return(BadRequest("Failed to Update Career Profile"));
        }
 public void UpdateHistory(AppliedJobHistory history)
 {
     _context.Entry(history).State = EntityState.Modified;
 }
 public void AddHistory(AppliedJobHistory history)
 {
     _context.AppliedJobHistories.Add(history);
 }