Esempio n. 1
0
 public ActionResult CreateSubject(string Id, string Sub_name, int Numb_Credit, int Numb_Theory, int Numb_Practice,
                                   double Theory_Percent, int Numb_Student, string Specialized_Name, string Class_Name, string Teacher_Name, int Year_Term)
 {
     if (SubjectAction.Find(Id) != null)
     {
         SubjectAction.CreateRelate(Id, Class_Name, Teacher_Name, Year_Term);
     }
     if (SubjectAction.Find(Id) == null)
     {
         SubjectAction.Add_Subject(Id, Sub_name, Numb_Credit, Numb_Theory, Numb_Practice, Theory_Percent, Numb_Student, Class_Name, Teacher_Name, Year_Term);
     }
     return(Redirect("~/Subject/CreateSubject"));
 }
Esempio n. 2
0
 public JsonResult GetAllSubject(string Id)
 {
     return(Json(SubjectAction.Find(Id), JsonRequestBehavior.AllowGet));
 }