// This can be replaced by AutoMapper
        private ProductResultDto mapDTO(Product product)
        {
            ProductResultDto productResultDTO = new ProductResultDto();

            productResultDTO.Id           = product.Id;
            productResultDTO.Name         = product.Name;
            productResultDTO.Image        = product.Image;
            productResultDTO.SellingPrice = product.SellingPrice;
            productResultDTO.CostPrice    = product.CostPrice;

            return(productResultDTO);
        }
        public ProductResultDto Get(Guid id)
        {
            var product = this._inventoryContext.Products.Where(p => p.Id == id).FirstOrDefault();
            ProductResultDto productResultDTO = null;

            if (product != null)
            {
                productResultDTO = mapDTO(product);
            }

            return(productResultDTO);
        }