示例#1
0
        public async Task <ActionResult> RegisterCourse(string courses)
        {
            var result = await service.RegisterCourse(courses);

            if (result)
            {
                return(RedirectToAction("RegisterCourse"));
            }
            else
            {
                return(RedirectToAction("Index"));
            }
        }