/// <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(); }
/// <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); }