public ActionResult Create(string name, string outputdir, string outputfilename, string[] mylanguages)
 {
     var project = new project {name = name, outputdir = outputdir, outputfilename = outputfilename };
     ProjectRepository.SaveProject(project);
     LanguageRepository.CreateProjectLanguages(project.id, mylanguages);
     return Content("saved");
 }
 /// <summary>
 /// Create a new project object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 public static project Createproject(global::System.Int32 id)
 {
     project project = new project();
     project.id = id;
     return project;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the projects EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToprojects(project project)
 {
     base.AddObject("projects", project);
 }
 public static int SaveProject(project project)
 {
     _context = GetContext();
     _context.projects.AddObject(project);
     return _context.SaveChanges();
 }