Beispiel #1
0
        public async Task <GetByIdListSupplier> GetById(int id)
        {
            var result = await _supplierApiClient.GetById(id);

            var data = new GetByIdListSupplier()
            {
                Code    = result.ResultObj.Code,
                Tax     = result.ResultObj.Tax,
                Name    = result.ResultObj.Name,
                Phone   = result.ResultObj.Phone,
                Address = result.ResultObj.Address,
                Email   = result.ResultObj.Email
            };

            return(data);
        }
Beispiel #2
0
        public async Task <IActionResult> Details(int id)
        {
            var result = await _supplierApiClient.GetById(id);

            return(View(result.ResultObj));
        }