public Company_CompanyCallLogMappingDTO(CompanyCallLogMapping CompanyCallLogMapping)
 {
     this.CompanyId = CompanyCallLogMapping.CompanyId;
     this.CallLogId = CompanyCallLogMapping.CallLogId;
     this.CallLog   = CompanyCallLogMapping.CallLog == null ? null : new Company_CallLogDTO(CompanyCallLogMapping.CallLog);
     this.Errors    = CompanyCallLogMapping.Errors;
 }
Ejemplo n.º 2
0
        public async Task <ActionResult <Company_CallLogDTO> > GetCallLog([FromBody] Company_CallLogDTO Company_CallLogDTO)
        {
            if (UnAuthorization)
            {
                return(Forbid());
            }
            if (!ModelState.IsValid)
            {
                throw new BindException(ModelState);
            }

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

            return(new Company_CallLogDTO(CallLog));
        }