Example #1
0
        public ActionResult EditStudentInfo(int id, string holy_name, string first_name, string last_name,
                                            string email, string phone_number, string gender, string useradress, DateTime?birthday,
                                            DateTime?baptised_date, int?parishid, string parish, string diocese, string province)
        {
            if (parishid != null)
            {
                StudentActions.editStudentinfo(id, holy_name, first_name, last_name,
                                               email, phone_number, gender, useradress, birthday,
                                               baptised_date, parishid, parish, diocese, province);
            }
            else
            {
                StudentActions.editStudentinfo(id, holy_name, first_name, last_name,
                                               email, phone_number, gender, useradress, birthday,
                                               baptised_date, null, parish, diocese, province);
            }

            return(RedirectToAction("EditStudent", "Student", new { id }));
        }