/// <summary>
        /// Get Product by Id
        /// </summary>
        /// <param name="ProductId"></param>
        /// <returns></returns>
        public Task <Product> GetProductById(string ProductId)
        {
            //Do code here

            return(_groceryRepository.GetProductById(ProductId));
            //throw new NotImplementedException();
        }
示例#2
0
        /// <summary>
        /// Get Product by Id
        /// </summary>
        /// <param name="ProductId"></param>
        /// <returns></returns>
        public Task <Product> GetProductById(string ProductId)
        {
            var result = _groceryRepository.GetProductById(ProductId);

            return(result);
        }