Пример #1
0
        public async Task <RequestResult> Create()
        {
            try
            {
                var result = await _sequenceService.Create();

                return(new SuccessResult
                {
                    Response = new
                    {
                        sequence = result.Id
                    },
                    Status = "ok"
                });
            }
            catch (Exception e)
            {
                return(new ErrorResult
                {
                    Msg = e.Message,
                    Status = "error"
                });
            }
        }