Beispiel #1
0
 public void CreateBranch(BranchModel branch)
 {
     this.publishifyContext.Branch.Add(new Branch()
     {
         Id            = branch.Id,
         BranchName    = branch.BranchName,
         BranchVersion = branch.BranchVersion,
         BranchLink    = branch.BranchLink,
         Publishes     = branch.Publishes
     });
     this.publishifyContext.SaveChanges();
 }
Beispiel #2
0
 private void MapBranchModel(Branch branch, BranchModel model)
 {
     branch.BranchVersion = model.BranchVersion;
     branch.BranchName    = model.BranchName;
     branch.BranchLink    = model.BranchLink;
 }