コード例 #1
0
 /// <summary>
 /// Get Header Notification List for Login User
 /// </summary>
 /// <returns></returns>
 public ActionResult GetNotificationList()
 {
     NotificationObject notifications = new NotificationObject();
     ResponseObjectForAnything responseObject = new ResponseObjectForAnything();
     NotificationEngine notificationEngine = new NotificationEngine();
     string response = notificationEngine.GetNotificationsJSON(Request.Cookies["sessionkey"].Value);
     responseObject = (ResponseObjectForAnything)Serializer.JSONStringToObject<ResponseObjectForAnything>(response);
     notifications = (NotificationObject)Serializer.JSONStringToObject<NotificationObject>(responseObject.ResultObjectJSON);
     return PartialView("_HeaderNotificationList", notifications.Notifications);
 }
コード例 #2
0
 public ActionResult GetNotificationDetail(int pNotificationID, int pProblemID)
 {
     NotificationObject notificationobj = new NotificationObject();
     ResponseObjectForAnything responseObject = new ResponseObjectForAnything();
     NotificationEngine notificationEngine = new NotificationEngine();
     string response = notificationEngine.GetNotificationDetailsJSON(Request.Cookies["sessionkey"].Value, pNotificationID.ToString(), pProblemID.ToString());
     responseObject = (ResponseObjectForAnything)Serializer.JSONStringToObject<ResponseObjectForAnything>(response);
     notificationobj = (NotificationObject)Serializer.JSONStringToObject<NotificationObject>(responseObject.ResultObjectJSON);
     return PartialView("_NotificationDetail", notificationobj);
 }