public RentalBranch GetRentalBranch(int id)
        {
            RentalBranchLogic rentalBranchLogic = new RentalBranchLogic(DB);
            RentalBranch      rentalBranch      = rentalBranchLogic.GetRentalBranch(id).ConvertToRentalBranch();

            return(rentalBranch);
        }
 public RentalBranchModel(RentalBranch rentalBranch)
 {
     BranchID = rentalBranch.BranchId;
     Address  = rentalBranch.Address;
     Name     = rentalBranch.BranchName;
     LocID    = rentalBranch.LocId;
     Loc      = rentalBranch.Loc;
 }
        public RentalBranch ConvertToRentalBranch()
        {
            RentalBranch rentalBranch = new RentalBranch
            {
                BranchId   = BranchID,
                Address    = Address,
                BranchName = Name,
                LocId      = LocID,
                Loc        = Loc
            };

            return(rentalBranch);
        }