public JsonResult DeauthenticateUser(string SessionGuid) { try { DbHelpers.RemoveSession(SessionGuid); return(Json( new JsonResponse <Boolean> { Response = true, Success = true, Message = "This device has been deauthenticated." }, JsonRequestBehavior.AllowGet )); } catch (Exception) { return(Json( new JsonResponse <Boolean> { Response = false, Success = false, Message = "An error occured while processing your request." }, JsonRequestBehavior.AllowGet )); } }
public JsonResult ClearSessions(int SessionId) { DbHelpers.RemoveSession(SessionId); return(Json(true, JsonRequestBehavior.AllowGet)); }