Пример #1
0
 /// <summary>
 /// Adds the branch.
 /// </summary>
 /// <param name="branch">The branch.</param>
 /// <returns></returns>
 public bool AddBranch(Branch branch)
 {
     db.Branch.Add(branch);
     return(db.SaveChanges() > 0 ? true : false);
 }
Пример #2
0
 /// <summary>
 /// Adds the branch.
 /// </summary>
 /// <param name="branch">The branch.</param>
 /// <returns></returns>
 public bool AddBranch(Branch branch)
 {
     db.Branch.Add(branch);
     return db.SaveChanges() > 0 ? true : false;
 }