Пример #1
0
        public async Task <ApiResultModel <dynamic> > Archive(Guid id)
        {
            try
            {
                await _transactionServices.Archive(id);

                return(new ApiResultModel <dynamic>()
                {
                    Data = 1,
                    Success = true,
                    Message = "Success",
                    Code = 200
                });
            }
            catch (Exception ex)
            {
                return(new ApiResultModel <dynamic>()
                {
                    Data = -1,
                    Success = false,
                    Message = ex.Message,
                    Code = ex.HResult
                });
            }
        }