Example #1
0
        public virtual async Task <ActionResult> Create(Student model)
        {
            try
            {
                await StudentCore.CreateAsync(model);

                return(RedirectToAction("Index"));
            }
            catch (Exception ex)
            {
                return(View());
            }
        }