diff --git a/errorhandling-problemdetails-end/Controllers/ProductController.cs b/errorhandling-problemdetails-end/Controllers/ProductController.cs index 6a28454..72da5ad 100644 --- a/errorhandling-problemdetails-end/Controllers/ProductController.cs +++ b/errorhandling-problemdetails-end/Controllers/ProductController.cs @@ -20,7 +20,7 @@ public ProductController(IProductService productService) } [HttpGet] - public async Task> Get() => await _productService.GetAllPrpoducts(); + public async Task> Get() => await _productService.GetAllProducts(); [HttpGet("{id}")] public async Task> GetById(int id) diff --git a/errorhandling-problemdetails-end/Services/Interfaces/IProductService.cs b/errorhandling-problemdetails-end/Services/Interfaces/IProductService.cs index 3df3220..c730876 100644 --- a/errorhandling-problemdetails-end/Services/Interfaces/IProductService.cs +++ b/errorhandling-problemdetails-end/Services/Interfaces/IProductService.cs @@ -6,7 +6,7 @@ namespace ErrorHandlingProblemDetails.Services.Interfaces { public interface IProductService { - Task> GetAllPrpoducts(); + Task> GetAllProducts(); Task GetProductById(int id); Task CreateNewProduct(Product product); Task GetProductByName(string name); diff --git a/errorhandling-problemdetails-end/Services/ProductService.cs b/errorhandling-problemdetails-end/Services/ProductService.cs index 16502d4..92d7bf7 100644 --- a/errorhandling-problemdetails-end/Services/ProductService.cs +++ b/errorhandling-problemdetails-end/Services/ProductService.cs @@ -16,7 +16,7 @@ public ProductService(AppDbContext context) _context = context; } - public async Task> GetAllPrpoducts() => await _context.Products.ToListAsync(); + public async Task> GetAllProducts() => await _context.Products.ToListAsync(); public async Task GetProductById(int id) => await _context.Products.FirstOrDefaultAsync(p => p.Id == id); diff --git a/errorhandling-problemdetails-start/Controllers/ProductController.cs b/errorhandling-problemdetails-start/Controllers/ProductController.cs index 9a23442..1f1c15e 100644 --- a/errorhandling-problemdetails-start/Controllers/ProductController.cs +++ b/errorhandling-problemdetails-start/Controllers/ProductController.cs @@ -19,7 +19,7 @@ public ProductController(IProductService productService) } [HttpGet] - public async Task> Get() => await _productService.GetAllPrpoducts(); + public async Task> Get() => await _productService.GetAllProducts(); [HttpGet("{id}")] public async Task> GetById(int id) diff --git a/errorhandling-problemdetails-start/Services/Interfaces/IProductService.cs b/errorhandling-problemdetails-start/Services/Interfaces/IProductService.cs index 3df3220..c730876 100644 --- a/errorhandling-problemdetails-start/Services/Interfaces/IProductService.cs +++ b/errorhandling-problemdetails-start/Services/Interfaces/IProductService.cs @@ -6,7 +6,7 @@ namespace ErrorHandlingProblemDetails.Services.Interfaces { public interface IProductService { - Task> GetAllPrpoducts(); + Task> GetAllProducts(); Task GetProductById(int id); Task CreateNewProduct(Product product); Task GetProductByName(string name); diff --git a/errorhandling-problemdetails-start/Services/ProductService.cs b/errorhandling-problemdetails-start/Services/ProductService.cs index 16502d4..92d7bf7 100644 --- a/errorhandling-problemdetails-start/Services/ProductService.cs +++ b/errorhandling-problemdetails-start/Services/ProductService.cs @@ -16,7 +16,7 @@ public ProductService(AppDbContext context) _context = context; } - public async Task> GetAllPrpoducts() => await _context.Products.ToListAsync(); + public async Task> GetAllProducts() => await _context.Products.ToListAsync(); public async Task GetProductById(int id) => await _context.Products.FirstOrDefaultAsync(p => p.Id == id);