public IActionResult Cancel(int id)
 {
     try
     {
         Log.Information($"Attempting to Cancel class: {id}");
         var @class = _classService.Cancel(id);
         Log.Information($"Successfully Cancelled class {id}");
         var classDto = _mapper.Map <ClassDto>(@class);
         classDto.IsOwner = true;
         return(Ok(classDto));
     }
     catch (AppException ex)
     {
         return(BadRequest(ex.Message));
     }
 }