Example #1
0
        public JsonResult EstablishPreviousConnection(int ID, string status)
        {
            int userID   = (Session["Student"] as Student).ID;
            var response = screenShareManager.EstablishPreviousConnection(ID, status, userID);

            if (response.IsSuccess)
            {
                return(Json(new { IsSuccess = true }));
            }
            else
            {
                return(Json(new { IsSuccess = false, Explanation = response.Explanation }));
            }
        }