public async Task <IActionResult> GetDiscount(int id) { var discountFroRepo = await _repo.GetDiscount(id); var post = _mapper.Map <DiscountReturnDTO>(discountFroRepo); if ((discountFroRepo == null)) { return(NotFound()); } return(Ok(discountFroRepo)); }