public static ClaimTimer GetTimerStart() { BillingRepo repo = new BillingRepo(); ClaimTeamLoginModel client = (ClaimTeamLoginModel)HttpContext.Current.Session[SessionHelper.claimTeamLogin]; return(repo.GetTimerStart(client.UserId)); }
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)); } }