/// <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); }
/// <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; }