Ejemplo n.º 1
0
        public async Task <ResponseMessage> CheckNameExists(string name)
        {
            try
            {
                var id = await _designService.CheckNameExists(name);

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