public async Task <IActionResult> PutTblQualification([FromRoute] int id, [FromBody] TblQualification tblQualification)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != tblQualification.QualificationID)
            {
                return(BadRequest());
            }

            _context.Entry(tblQualification).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!TblQualificationExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public async Task <IActionResult> PutInterviewDetails([FromRoute] int id, [FromBody] Update details)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != details.CandidateId)
            {
                return(BadRequest());
            }
            TblInterviewDetails tblInterviewDetails = _context.TblInterviewDetails.Where(x => x.CandidateId == details.CandidateId).FirstOrDefault();

            if (details.EmployeeRole == "HR" || details.EmployeeRole == "hr")
            {
                tblInterviewDetails.Hrinterviewer = details.EmployeeId;
                tblInterviewDetails.Status        = tblInterviewDetails.Status + 1;
                tblInterviewDetails.Comments      = details.Comments;
            }
            if (details.EmployeeRole == "IT" || details.EmployeeRole == "it")
            {
                tblInterviewDetails.Itinterviewer = details.EmployeeId;
                tblInterviewDetails.Status        = tblInterviewDetails.Status + 1;
                foreach (Mark mark in details.Marks)
                {
                    _context.TblSkills.Add(new TblSkills
                    {
                        CandidateId = details.CandidateId,
                        CourseId    = mark.CourseID,
                        Marks       = mark.Marks
                    });
                }
            }
            _context.Entry(tblInterviewDetails).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!TblInterviewDetailsExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }