using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using EMIS.CommonLogic.DQPSystem; using EMIS.ViewModel; using EMIS.Web.Controls; using EMIS.Utility.FormValidate; namespace EMIS.Web.Controllers.DQPSystem { [Authorization] public class DQPCommunicateController : Controller { public ICommunicateServices CommunicateServices { get; set; } public ActionResult TeacherList() { return View(); } [HttpPost] public ActionResult TeacherList(QueryParamsModel pararms) { ConfiguretView configuretView = ConfiguretExtensions.GetConfiguretermsView(pararms); var schoolyearID = pararms.getExtraGuid("ddlSchoolyear"); var coursematerialID = pararms.getExtraGuid("cgbCourse"); var userID = CustomPrincipal.Current.UserID; return base.Json(CommunicateServices.GetTeacherCommunicateViewList(configuretView, schoolyearID.Value, coursematerialID.Value, userID, (int)pararms.page, (int)pararms.rows)); } public ActionResult StudentList() { return View(); } [HttpPost] public ActionResult StudentList(QueryParamsModel pararms) { ConfiguretView configuretView = ConfiguretExtensions.GetConfiguretermsView(pararms); var schoolyearID = pararms.getExtraGuid("ddlSchoolyear"); var coursematerialID = pararms.getExtraGuid("cgbCourse"); var userID = CustomPrincipal.Current.UserID; return base.Json(CommunicateServices.GetStudentCommunicateViewList(configuretView, schoolyearID.Value, coursematerialID.Value, userID, (int)pararms.page, (int)pararms.rows)); } } }