Пример #1
0
 public ActionResult Detail(string id)
 {
     if (string.IsNullOrEmpty(id))
     {
         return(View());
     }
     else
     {
         int    person  = Convert.ToInt32(id);
         GrowBl bl      = new GrowBl();
         var    alldata = bl.GetPersonAllData(person);
         ViewBag.Message = alldata[0].Name + "'s  Weight Tracking";
         return(View(alldata));
     }
 }
        public List <PersonRecord> Detail(string id)
        {
            if (string.IsNullOrEmpty(id))
            {
                return(null);
            }
            else
            {
                var result = new PersonDetailJsonModel();

                int    person  = Convert.ToInt32(id);
                GrowBl bl      = new GrowBl();
                var    alldata = bl.GetPersonAllData(person);

                return(alldata);
            }
        }