public Model.Location CheckManager(Model.Customer user)
 {
     Entity.Location found = _context.Locations.FirstOrDefault(loc => loc.Manager == user.Id);
     if (found == null)
     {
         return(null);
     }
     return(new Model.Location(found.Id, found.City, found.State, user));
 }
 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)));
 }