public IActionResult GetCategory() { try { return(Ok(_ibuyrepo.GetCategory())); } catch (Exception e) { return(NotFound(e.Message)); } }
public IActionResult getcategories() { try { return(Ok(ir.GetCategory())); } catch (Exception e) { return(NotFound(e.Message)); } }