public ActionResult CompileApplication(int id = 0)
        {
            if (id == 0)
            {
                return(HttpNotFound());
            }

            string      userName    = User.Identity.Name;
            Application application = applicationRepository.FindFirst(ap => ap.Member.username == userName && ap.Id == id);

            if (application != null)
            {
                string appName          = application.Name + application.Id;
                string member_public_id = application.Member.public_id;
                Compile.CreateFromCSFiles(Globals.APP_DATA_PATH + "\\" + member_public_id + "\\" + appName, appName.Replace(" ", ""), application.db_name);
            }

            return(RedirectToAction("Index"));
        }
 private void CreateProjectDLL(String appName, String dbName, String appDirectory)
 {
     Compile.CreateFromCSFiles(appDirectory, appName.Replace(" ", ""), dbName);
 }