public static Card ToDto(this ReadCardRequest request) => new Card { CardValue = (CardValue)request.CardValue };
//public PostSampleResponse Post(PostSampleRequest request) => new PostSampleResponse { Id = _sampleManager.Post(request.ToDto()) }; public ReadCardResponse ReadCard(ReadCardRequest request) => new ReadCardResponse { Card = _cardManager.Get(request.ToDto()).ToServiceModel() };
/// <summary> /// 读卡 /// </summary> /// <param name="request"></param> /// <returns></returns> public ReadCardResponse ReadCard(ReadCardRequest request) { return(_service.ReadCard(request)); }
/// <summary> /// 读卡 /// </summary> /// <param name="request"></param> /// <returns></returns> public ReadCardResponse ReadCard(ReadCardRequest request) { throw new NotImplementedException(); }
/// <summary> /// 读卡 /// </summary> /// <param name="request"></param> /// <returns></returns> public ReadCardResponse ReadCard(ReadCardRequest request) { return(SendRequest <ReadCardRequest, ReadCardResponse>(111, request)); }