public async Task <ActionResult <InternshipDTO> > PutInternship(int id, Internship internship)
        {
            if (id != internship.Id)
            {
                return(BadRequest());
            }

            try
            {
                await _repository.UpdateInternship(internship);
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!InternshipExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(_mapper.Map <InternshipDTO>(internship));
        }