Guest User

Untitled

a guest
May 17th, 2018
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. using SitefinityWebApp.Custom.Services;
  2. using System.Web.Mvc;
  3.  
  4. namespace SitefinityWebApp.Controllers
  5. {
  6. public class ClassicController : Controller
  7. {
  8. private readonly IHelloSitefinityService service;
  9.  
  10. public ClassicController(IHelloSitefinityService service)
  11. {
  12. this.service = service;
  13. }
  14.  
  15. public ActionResult Index()
  16. {
  17. var helloString = this.service.SayHello();
  18.  
  19. return this.View(nameof(this.Index), helloString);
  20. }
  21.  
  22. }
  23. }
Add Comment
Please, Sign In to add comment