public Entities.Owner UpdateOwner(Entities.Owner dbOwner, Entities.Owner owner)
        {
            _context.Attach(dbOwner);
            dbOwner.Name    = owner.Name;
            dbOwner.Address = owner.Address;

            _context.SaveChanges();

            return(dbOwner);
        }
 public void DeleteOwner(Entities.Owner owner)
 {
     _context.Remove(owner);
     _context.SaveChanges();
 }
 public Entities.Owner CreateOwner(Entities.Owner owner)
 {
     _context.Add(owner);
     _context.SaveChanges();
     return(owner);
 }