internal bool IsOrderUpdated(Order order, OrderInterpreterLocation selectedInterpreterLocation) { var offSitePhoneOrVideo = selectedInterpreterLocation.InterpreterLocation == InterpreterLocation.OffSitePhone || selectedInterpreterLocation.InterpreterLocation == InterpreterLocation.OffSitePhone; return (!(order.InvoiceReference == InvoiceReference && order.CustomerReferenceNumber == CustomerReferenceNumber && order.UnitName == UnitName && order.Description == Description && ((offSitePhoneOrVideo && selectedInterpreterLocation.OffSiteContactInformation == OffSiteContactInformation) || (!offSitePhoneOrVideo && selectedInterpreterLocation.Street == LocationStreet)))); }
internal static InterpreterLocationAddressModel GetInterpreterLocation(OrderInterpreterLocation location) { if (location == null) { return(null); } return(new InterpreterLocationAddressModel { InterpreterLocation = location.InterpreterLocation, Rank = location.Rank, LocationStreet = location.Street, LocationCity = location.City, OffSiteContactInformation = location.OffSiteContactInformation }); }