Пример #1
0
        public async Task <IHttpActionResult> Get(Guid clientId)
        {
            try
            {
                var response = await ClientCore.GetAsync(clientId, new[]
                {
                    nameof(Client.Currency)
                });

                return(Ok(response));
            }
            catch (Exception e)
            {
                LogHelper.LogException <ClientController>(e);

                return(Ok(ResponseFactory.CreateResponse(false, ResponseCode.Error)));
            }
        }
Пример #2
0
        public void GetClientTest()
        {
            var response = ClientCore.GetAsync(mClient.Id).ConfigureAwait(false).GetAwaiter().GetResult();

            AssertObjects(response, mClient);
        }