示例#1
0
        //[Authorize(Policy = "CREATE_STUDENT")]
        public async Task <IActionResult> CreateFO(FormViewModel model)
        {
            if (ModelState.IsValid)
            {
                var x = HttpContext.Session.GetInt32(@"SELECTED_UNIT");

                await _formRepo.CreateFOAsync(model, x);

                return(RedirectToAction(nameof(ViewFormOffering)));
            }
            return(View(model));
        }