Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public JsonResult GetPoeResultMode()
        {
            var common = new FeedbackServiceClient();

            if (Session["SelectedPoe"] != null)
            {
                var returnValue = common.GetPoEResultMode(int.Parse(Session["id"].ToString()), int.Parse(Session["SelectedPoe"].ToString()));
                Session["PoEResultMode"] = returnValue.ToString();
                var role       = GetCurrentUserRoleUpdated();
                var resultmode = new PoeResultMode
                {
                    Status = returnValue,
                    Role   = role
                };
                return(JsonResponse(resultmode));
            }
            else
            {
                var returnValue = common.GetPoEResultMode(int.Parse(Session["id"].ToString()), 0);

                Session["PoEResultMode"] = returnValue.ToString();
                var resultmode = new PoeResultMode
                {
                    Status = returnValue,
                    Role   = 0
                };
                return(JsonResponse(resultmode));
            }
        }
Ejemplo n.º 2
0
        public JsonResult GetPoeResultModeUpdated()
        {
            var common = new FeedbackServiceClient();

            var returnValue = common.GetPoEResultMode(int.Parse(Session["id"].ToString()), 0);

            Session["PoEResultMode"] = returnValue.ToString();
            var resultmode = new PoeResultMode
            {
                Status = returnValue,
                Role   = 0
            };

            return(JsonResponse(resultmode));
        }