public async Task GetDiscount() { var result = await _service.GetById(1); Assert.IsNotNull(result); }
public async Task <ActionResult <Discount> > Get(int id) { return(Ok(await _service.GetById(id))); }