Esempio n. 1
0
        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))));
        }
Esempio n. 2
0
 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
     });
 }