コード例 #1
0
        public async Task<ActionResult> BuildAndroid(Project project)
        {
            var projectRepo = new ProjectRepository();
            var isNewProject = false;
            if (project.Id.ToString().Trim() == "000000000000000000000000")
            {
                isNewProject = true;
                project.DateCreated = Helper.SetDateForMongo(DateTime.Now);
                project.User = User.Identity.Name;
                await projectRepo.CreateSync(project);
            }

            var output = ProcessBuild(project, "android", User.Identity.Name);
            return Json(new { success = true, projectId = project.Id.ToString(), isNew = isNewProject }, JsonRequestBehavior.AllowGet);
        }