Exemplo n.º 1
0
        public BusinessPartnerResponse Post(CreateBusinessPartner request)
        {
            try
            {
                BusinessPartnerModel result = request.ConvertTo <BusinessPartnerModel>();
                businessPartnerRepository.Create(result);

                return(result.ConvertTo <BusinessPartnerResponse>());
            }
            catch (Exception ex)
            {
                Log.Error(ex, "Something went wrong while posting BusinessPartner.");
                throw;
            }
        }