public Customer_CustomerCCEmailHistoryDTO(CustomerCCEmailHistory CustomerCCEmailHistory)
 {
     this.Id = CustomerCCEmailHistory.Id;
     this.CustomerEmailHistoryId = CustomerCCEmailHistory.CustomerEmailHistoryId;
     this.CCEmail = CustomerCCEmailHistory.CCEmail;
     this.CustomerEmailHistory = CustomerCCEmailHistory.CustomerEmailHistory == null ? null : new Customer_CustomerEmailHistoryDTO(CustomerCCEmailHistory.CustomerEmailHistory);
     this.Errors = CustomerCCEmailHistory.Errors;
 }
Ejemplo n.º 2
0
        public async Task <ActionResult <Customer_CustomerEmailHistoryDTO> > GetCustomerEmailHistory([FromBody] Customer_CustomerEmailHistoryDTO Customer_CustomerEmailHistoryDTO)
        {
            if (UnAuthorization)
            {
                return(Forbid());
            }
            if (!ModelState.IsValid)
            {
                throw new BindException(ModelState);
            }

            CustomerEmailHistory CustomerEmailHistory = await CustomerEmailHistoryService.Get(Customer_CustomerEmailHistoryDTO.Id);

            return(new Customer_CustomerEmailHistoryDTO(CustomerEmailHistory));
        }