public IActionResult Get(int kategoriId) { var result = _service.GetById(kategoriId); if (result != null) { return(Ok(result)); } else { return(BadRequest("Could not find the category")); } }
public IActionResult GetList(int Id) { var result = _kategoriService.GetById(Id); return(Ok(result)); }
public async Task <IActionResult> KategoriDuzenle(int id) { var kategori = await kategoriService.GetById(id); return(View(kategori)); }