Пример #1
0
        public async Task <ResponseMessage> GetDesign(string designId)
        {
            try
            {
                var design = await _designService.GetDesign(designId);

                return(new ResponseMessage {
                    Status = "Ok", Data = design
                });
            }
            catch (Exception ex)
            {
                _logger?.LogError(ex, "Error fetching design.");
                return(new ResponseMessage {
                    Status = "Error", Message = "Error fetching design."
                });
            }
        }