public long SaveApplicationTempAPI(ApplicationRequirement model) { SchoolActivityModule module = new SchoolActivityModule(_context); long id = module.CreateRequirement(model); if (id != 0) { module.UpdateActivity(model.ActivityID); } return(id); }
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")); }