PageRenderTime 49ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/MvcApplicationAPI/Controllers/HomeController.cs

https://github.com/henrikjakobsen/WebAPI
C# | 22 lines | 19 code | 3 blank | 0 comment | 0 complexity | f1ace345b716260e424368cb3aa87482 MD5 | raw file
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.Mvc;
  6. using MvcApplicationAPI.Models;
  7. using MvcApplicationAPI.Repositories;
  8. namespace MvcApplicationAPI.Controllers
  9. {
  10. public class HomeController : Controller
  11. {
  12. public ActionResult Index()
  13. {
  14. var repo = new ProductRepository();
  15. repo.Add(new Product() {Name = "Test"});
  16. return View();
  17. }
  18. }
  19. }