CreateTeacherForInstitute(Guid instituteId, TeacherAddDto teacher)
        {
            if (!await _instituteRepository.InstituteExistsAsync(instituteId))
            {
                return(NotFound());
            }
            var entity = _mapper.Map <Teacher>(teacher);

            _instituteRepository.AddTeacher(instituteId, entity);
            await _instituteRepository.SaveAsync();

            var dtoToReturn = _mapper.Map <TeacherDto>(entity);

            return(CreatedAtRoute(nameof(GetTeacherForInstitute), new {
                instituteId,
                teacherId = dtoToReturn.Id
            }, dtoToReturn));
        }