/MvcApplicationAPI/Controllers/HomeController.cs
C# | 22 lines | 19 code | 3 blank | 0 comment | 0 complexity | f1ace345b716260e424368cb3aa87482 MD5 | raw file
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.Mvc;
- using MvcApplicationAPI.Models;
- using MvcApplicationAPI.Repositories;
- namespace MvcApplicationAPI.Controllers
- {
- public class HomeController : Controller
- {
- public ActionResult Index()
- {
- var repo = new ProductRepository();
- repo.Add(new Product() {Name = "Test"});
-
- return View();
- }
- }
- }