Beispiel #1
0
        //
        // GET: /Report/



        public ActionResult Index()
        {
            List <Db_objects> objects = repo_.GetAllObjects().OrderBy(x => x.Address).ToList();
            ReportSource      rc      = new ReportSource();

            rc.Adresses = objects.Select(x => new SelectListItem()
            {
                Text = x.Address, Value = x.Identity
            }).ToList();

            return(View("ReportIndex", rc));
        }
Beispiel #2
0
        public JsonResult AllMarkers()
        {
            List <Db_objects> devices = new List <Db_objects>();

            try
            {
                devices = repo.GetAllObjects().ToList();
            }
            catch (Exception ex)
            {
                loger.LogToFile(Utilite.CreateDefaultLogMessage(User.Identity.Name, "error", ex.Message + " " + ex.StackTrace));
            }

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