private IActionResult ValidateDatabase()
        {
            var actionResult = new ActionResult();

            try
            {
                if (Database.CreateIfNotExists())
                {
                    actionResult.AddInfo("Database created.");
                }
                else if (Database.CompatibleWithModel(true))
                {
                    actionResult.AddInfo("Database is valid.");
                }
                else
                {
                    actionResult.AddError("Database is not valid.");
                }
            }
            catch (Exception e)
            {
                actionResult.AddError("Database is not available.\r\n{0}", Helper.ExpandMessages(e));
            }
            return(actionResult);
        }