Пример #1
0
        public async Task <IActionResult> DeleteInstructor(string instructorId)
        {
            if (string.IsNullOrEmpty(instructorId))
            {
                return(NotFound());
            }

            try
            {
                await instructorService.DeleteInstructorAsync(instructorId);

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