Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     logic = new OurTeam_Logic();
     if (Request["Id"] != null)
     {
         int Id = Convert.ToInt32(Request["Id"]);
         Response.Write(Newtonsoft.Json.JsonConvert.SerializeObject(logic.GetMember(Id)));
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     logic = new OurTeam_Logic();
     if (Request["Id"] != null)
     {
         int Id    = Convert.ToInt32(Request["Id"]);
         var model = logic.GetMember(Id);
         model.PicModel = JsonConvert.SerializeObject(new List <UploaderModel>()
         {
             new UploaderModel()
             {
                 idOfImg = model.PicId.ToString()
             }
         });
         Response.Write(Newtonsoft.Json.JsonConvert.SerializeObject(model));
     }
 }