public ActionResult History(int id)
        {
            Db_objects obj = repo_.GetObjectById(id);

            if (obj == null)
            {
                return(HttpNotFound());
            }
            return(View(obj));
        }
Beispiel #2
0
 public ActionResult GetMarker(int ObjectId)
 {
     try
     {
         Db_objects marker = repo.GetObjectById(ObjectId);
         if (marker != null)
         {
             return(Json(marker, JsonRequestBehavior.AllowGet));
         }
         else
         {
             return(HttpNotFound());
         }
     }
     catch (Exception ex)
     {
         loger.LogToFile(Utilite.CreateDefaultLogMessage(User.Identity.Name, "error", ex.Message + " " + ex.StackTrace));
         return(HttpNotFound());
     }
 }
        public ActionResult ViewParameters(int id)
        {
            Db_objects obj = repo_.GetObjectById(id);

            if (obj == null)
            {
                return(HttpNotFound());
            }

            //ExternalRepository ins = new ExternalRepository(ConfigurationManager.ConnectionStrings["Data"].ConnectionString);

            //MethodResult res = ins.InsertNewRow(DateTime.Now, "123", new Random(DateTime.Now.Second).NextDouble() * 100, new Random(DateTime.Now.Second).NextDouble() * 10, new Random(DateTime.Now.Second).NextDouble() * 10, new Random(DateTime.Now.Second).NextDouble() * 10, new Random(DateTime.Now.Second).NextDouble() * 200, new Random(DateTime.Now.Second).NextDouble() * 200, new Random(DateTime.Now.Second).NextDouble() * 200, new Random(DateTime.Now.Second).NextDouble() * 100, new Random(DateTime.Now.Second).NextDouble() * 1100,"",null,0);

            return(View(obj));
        }