-
-
Save Adolfi/e6794f7c2feedca60031e63432b84e08 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ProductsController : UmbracoApiController | |
{ | |
private readonly IEmailService emailService; | |
public ProductsController(IEmailService emailService) | |
{ | |
this.emailService = emailService; | |
} | |
public IEnumerable<string> GetAllProducts() | |
{ | |
this.emailService.SendEmailToAdmin(); | |
return new[] { "Table", "Chair", "Desk", "Computer", "Beer fridge" }; | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment