public IActionResult CheckExist(string name) { var result = _slideRepository.CheckName(name); return(Json(new { result = !result })); }