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"); }
public void Put(Project project, int userId) { _projectRepository.Update(project, userId); }
public void Post(Project project, int userId) { _projectRepository.Add(project, userId); }