示例#1
0
 public Opportunity_OpportunityCallLogMappingDTO(OpportunityCallLogMapping OpportunityCallLogMapping)
 {
     this.OpportunityId = OpportunityCallLogMapping.OpportunityId;
     this.CallLogId     = OpportunityCallLogMapping.CallLogId;
     this.CallLog       = OpportunityCallLogMapping.CallLog == null ? null : new Opportunity_CallLogDTO(OpportunityCallLogMapping.CallLog);
     this.Errors        = OpportunityCallLogMapping.Errors;
 }
        public async Task <ActionResult <Opportunity_CallLogDTO> > GetCallLog([FromBody] Opportunity_CallLogDTO Opportunity_CallLogDTO)
        {
            if (UnAuthorization)
            {
                return(Forbid());
            }
            if (!ModelState.IsValid)
            {
                throw new BindException(ModelState);
            }

            CallLog CallLog = await CallLogService.Get(Opportunity_CallLogDTO.Id);

            return(new Opportunity_CallLogDTO(CallLog));
        }