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