Пример #1
0
 public ActionResult AddStudent(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 father_name, string father_phone_number, string mother_name, string mother_phone_number
                                , string parish, string diocese, string provice, int?class_id)
 {
     if (parishid == null)
     {
         StudentActions.addStudent(holy_name, first_name, last_name, email
                                   , phone_number, gender, useradress, birthday, baptised_date, null,
                                   father_name, father_phone_number, mother_name
                                   , mother_phone_number, parish, diocese, provice, class_id);
     }
     else
     {
         StudentActions.addStudent(holy_name, first_name, last_name, email
                                   , phone_number, gender, useradress, birthday, baptised_date, (int)parishid,
                                   father_name, father_phone_number
                                   , mother_name, mother_phone_number, parish, diocese, provice, class_id);
     }
     return(RedirectToAction("ListStudent"));
 }