public bool SerialNumberExists(string serialNumber)
 {
     return(_context.Endpoint.Any(EndpointQueries.GetBySerialNumber(serialNumber)));
 }
 public Endpoint GetBySerialNumber(string serialNumber)
 {
     return(_context.Endpoint.SingleOrDefault(EndpointQueries.GetBySerialNumber(serialNumber)));
 }