// GET: InspectionCode public ActionResult Index() { SedesolServiceClient proxy = new SedesolServiceClient(); CodeParam model = proxy.GetParamCode(((UserDTO)Session["userData"]).Id); List <YearDTO> years = model.Years; years = years.Where(item => Convert.ToInt32(item.Description) <= DateTime.Now.Year).ToList(); model.Years = years; return(View(model)); }
public CodeParam GetParamCode(int pUserId) { CodeParam capModel = new CodeParam(); ParamDAL parDal = new ParamDAL(); InspectionCodeDAL ins = new InspectionCodeDAL(); capModel.ListCode = ins.GetCodesByUserId(pUserId); capModel.Months = parDal.GetMonths(); capModel.Years = parDal.GetYears(); return(capModel); }
public override HeartbeatGenerator Create(IReadonlyContext context) => new HeartbeatGenerator(LabelParam.Get(context), CodeParam.Get(context), IntervalParam.Get(context));