public async Task <ActionResult <Instructor> > UpdateInstructor(string instructorId,
                                                                        [FromBody] JsonPatchDocument <InstructorViewModel> patchDocument)
        {
            if (string.IsNullOrEmpty(instructorId))
            {
                return(NotFound());
            }

            if (patchDocument == null)
            {
                return(BadRequest("Invalid JsonPatch"));
            }

            try
            {
                var updated = await instructorService.UpdateInstructorAsync(instructorId, patchDocument);

                return(Ok(updated));
            }
            catch (Exception e)
            {
                return(await HandleControllerException(e));
            }
        }