public async Task <ActionResult <VStudentDetails> > PostVStudentDetails(VStudentDetails vStudentDetails)
        {
            _context.VStudentDetails.Add(vStudentDetails);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetVStudentDetails", new { id = vStudentDetails.StudentId }, vStudentDetails));
        }
        public async Task <IActionResult> PutVStudentDetails(int id, VStudentDetails vStudentDetails)
        {
            if (id != vStudentDetails.StudentId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }