public Model.Customer GetUserName(Model.Customer customer)
 {
     Entity.Customer found = _context.Customers.FirstOrDefault(user => user.Name == customer.Name);
     if (found == null)
     {
         return(null);
     }
     return(new Model.Customer(found.Name, found.Username, found.Password));
 }
 public Model.Location GetLocation(Model.Location location)
 {
     Entity.Location found = _context.Locations.FirstOrDefault(loc => loc.City == location.City && loc.State == location.State);
     if (found == null)
     {
         return(null);
     }
     Entity.Customer foundManager = _context.Customers.FirstOrDefault(id => id.Id == found.Manager);
     return(new Model.Location(found.Id, found.City, found.State, new Model.Customer(foundManager.Name, foundManager.Username, foundManager.Password)));
 }