public async Task <IActionResult> GetSupplierbyIdAsync(int supplierId) { try{ var supp = await _repo.GetSupplierbyIdAsync(supplierId); if (supp == null) { return(new NotFoundResult()); } else { return(new OkObjectResult(supp)); } }catch { return(new ConflictResult()); } }