Esempio n. 1
0
        public ActionResult Add()
        {
            var db = MarketingDbContext.Instance;

            var tmp1 = new Project
            {
                Name = "tmp1"
            };
            var tmp2 = new Functionality
            {
                Project = tmp1,
                Name = "tmp2"
            };
            var tmp3 = new Test()
            {
                Name = "tmp3",
                Functionality = tmp2,
            };
            var tmp4 = new Test()
            {
                Name = "tmp4",
                Functionality = tmp2,
            };
            Repositories.TestRepository B = new Repositories.TestRepository();
            var c = new Repositories.FunctionalityRepository();
            TestController A = new TestController(B, c);

            return RedirectToAction("Index");
        }
Esempio n. 2
0
 public void Put(Project project, int userId)
 {
     _projectRepository.Update(project, userId);
 }
Esempio n. 3
0
 public void Post(Project project, int userId)
 {
     _projectRepository.Add(project, userId);
 }