コード例 #1
0
        public async Task <IActionResult> CreateMoviesIndex()
        {
            try
            {
                await _manageElasticsearch.CreateIndexAsync(WhatflixConstants.DATABASE_NAME);

                return(Ok());
            }
            catch (Exception ex)
            {
                return(StatusCode((int)HttpStatusCode.InternalServerError, ex.Message));
            }
        }