public ActionResult Index(int id)
 {
     //int id = 234058;
     woundAssessmentImage doc = null;
     using (var db = new Repository.WoundAssessmentRepository())
     {
         doc = db.Get(id);
     }
     return View(doc);
 }
        public ActionResult Post(int assessmentId)
        {
            var r = Request.Form;
            //save the pics and return crap

            woundAssessmentImage doc = null;
            using (var db = new Repository.WoundAssessmentRepository())
            {
                doc = db.Get(assessmentId);
            }
            ViewBag["message"] = "post complete";
            return View("Index", doc);
        }
Ejemplo n.º 3
0
        public JToken Get(int id)
        {
            //			int id = 234058;
            woundAssessmentImage doc = null;
            using (var db = new Repository.WoundAssessmentRepository())
            {
                doc = db.Get(id);
            }

                var ret = JsonConvert.SerializeObject(doc);
            //			JToken json = JObject.Parse(doc);
            JToken json = JObject.Parse(ret);
            return json;
        }