Exemple #1
0
        public void UpdateListingType(DC.ListingType request)
        {
            try
            {
                BL.ListingTypeLogic listingTypeLogic = new BL.ListingTypeLogic();
                BE.ListingType entity = request.ToBusinessEntity();
                listingTypeLogic.UpdateListingType(entity);
            }
            catch (BE.ListingTypeNotFoundException ex)
            {
                FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
                fault.ErrorMessage = String.Format(
                    "Unable to update Listing Type data. Data: {0}",
                    request.ToBusinessEntity().ToString());

                throw new FaultException<FC.DefaultFaultContract>(fault,
                    new FaultReason(ex.Message));
            }
        }