Exemplo n.º 1
0
    public string FillBySubjectHomeWork(string PupilID, string ChooseSubjectCode)
    {
        Users  PupilClass     = new Users();
        string PupilClassCode = PupilClass.GetPupilOtClass(PupilID);

        Dictionary <string, string> LessonsList = new Dictionary <string, string>();

        LessonsList = (Dictionary <string, string>)(Session["LessonsList"]);
        string   LessonCode = KeyByValue(LessonsList, ChooseSubjectCode);
        HomeWork HomeWork   = new HomeWork();

        DataTable DT = HomeWork.FillBySubjectHomeWork(PupilID, LessonCode);

        JavaScriptSerializer js = new JavaScriptSerializer();
        string jsonStringFillBySubjectHomeWork = js.Serialize(DT);

        return(jsonStringFillBySubjectHomeWork);
    }