示例#1
0
        public static ClaimTimer GetTimerStart()
        {
            BillingRepo         repo   = new BillingRepo();
            ClaimTeamLoginModel client = (ClaimTeamLoginModel)HttpContext.Current.Session[SessionHelper.claimTeamLogin];

            return(repo.GetTimerStart(client.UserId));
        }
示例#2
0
        public ActionResult GetTimerStart()
        {
            BillingRepo         repo   = new BillingRepo();
            ClaimTeamLoginModel client = (ClaimTeamLoginModel)Session[SessionHelper.claimTeamLogin];
            ClaimTimer          timer  = repo.GetTimerStart(client.UserId);

            if (timer == null)
            {
                return(Json("notimer", JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json(timer, JsonRequestBehavior.AllowGet));
            }
        }