/// <summary> /// Gets the protocol. /// </summary> /// <param name="customerId">The customer identifier.</param> /// <param name="protocolId">The protocol identifier.</param> /// <param name="isBrief">if set to <c>true</c> [is brief].</param> /// <returns></returns> public async Task <OperationResultDto <ProtocolResponseDto, GetProtocolStatus> > GetProtocol( int customerId, Guid protocolId, bool isBrief ) { var protocol = await protocolService.GetProtocol(customerId, protocolId); if (protocol == null) { return(await Task.FromResult( new OperationResultDto <ProtocolResponseDto, GetProtocolStatus>() { Status = GetProtocolStatus.NotFound } )); } return(await Task.FromResult( new OperationResultDto <ProtocolResponseDto, GetProtocolStatus>() { Status = GetProtocolStatus.Success, Content = Mapper.Map <Protocol, ProtocolResponseDto>(protocol, o => o.Items.Add("isBrief", isBrief)) } )); }