public Commit Pull(Project project, string version)
 {
     using (var commitContext = new CommitContext())
     {
         return(commitContext.Commits
                .Where(q => q.Number == version)
                .FirstOrDefault());
     }
 }
 public bool Commit(Commit commit)
 {
     using (var commitContext = new CommitContext())
     {
         commitContext.Commits.Add(commit);
         commitContext.SaveChanges();
     }
     return(true);
 }
 public bool CreateProject(Project project)
 {
     using (var a = new AccountContext())
         using (var b = new CommitContext())
             using (var projectContext = new ProjectContext())
             {
                 projectContext.Projects.Add(project);
                 projectContext.SaveChanges();
             }
     return(true);
 }