Example #1
0
        public ActionResult MeasuresFollowUp(MeasuresFollowUpFilterModel model)
        {
            var activeBatches = _batchService.GetAllActiveComplete().OrderBy(b => b.Number).ToList();

            ViewBag.BatchesSelectList = new SelectList(activeBatches, "Id", "Name");

            model.To   = DateTime.Today;
            model.From = model.To.Value.AddMonths(-1);

            return(View(model));
        }
        public ActionResult GetAllActive()
        {
            var list = _batchService.GetAllActiveComplete().Select(x => x.ToJSON());

            return(Json(list, JsonRequestBehavior.AllowGet));
        }