public async Task <ActionResult <ProductDto> > GetProductByID(int productID) { _orm.OpenConn(); var productsFromDB = await _orm.GetProductById(productID); if (productsFromDB == null) { return(NotFound()); } var productsDto = _mapper.Map <ProductDto>(productsFromDB); await _orm.CloseConn(); return(Ok(productsDto)); }