コード例 #1
0
        public long SaveApplicationTempAPI(ApplicationRequirement model)
        {
            SchoolActivityModule module = new SchoolActivityModule(_context);
            long id = module.CreateRequirement(model);

            if (id != 0)
            {
                module.UpdateActivity(model.ActivityID);
            }
            return(id);
        }
コード例 #2
0
        public ActionResult SaveApplicationTemp(ApplicationRequirement model)
        {
            SchoolActivityModule module = new SchoolActivityModule(_context);
            long id = module.CreateRequirement(model);

            if (id != 0)
            {
                module.UpdateActivity(model.ActivityID);
            }
            return(RedirectToAction("Index"));
        }