Exemplo n.º 1
0
        public async Task <GatewayResponse> SaveAsync(Gateway gateway)
        {
            try
            {
                await _repo.SaveAsync(gateway);

                await _unitOfWork.CompleteTask();

                return(new GatewayResponse(gateway));
            }
            catch (Exception ex)
            {
                return(new GatewayResponse($"An error ocurred triying to save the Gateway : {ex.Message}"));
            }
        }