public ActionResult GetClassDetail(int classId, int exhibitorId) { _mainResponse = _exhibitorService.GetClassDetail(classId, exhibitorId); _jsonString = Mapper.Convert <GetClassesForExhibitor>(_mainResponse); return(new OkObjectResult(_jsonString)); }