Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            logic = new OurTeam_Logic();
            if (Request["picId"] != null && Request["Name"] != null && Request["Subject"] != null)
            {
                var model = new OurTeamModel()
                {
                    T_Id     = 0,
                    deleted  = 0,
                    PicId    = Convert.ToInt32(Request["picId"]),
                    Name     = Request["Name"],
                    Job      = Request["Subject"],
                    Pic_Path = ""
                };

                Response.Write(logic.AddMember(model));
            }
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            logic = new OurTeam_Logic();
            string s1 = Request["picId"];
            string s2 = Request["Name"];
            string s3 = Request["Sub"];

            if (Request["picId"] != null && Request["Name"] != null && Request["Sub"] != null)
            {
                var model = new OurTeamModel()
                {
                    T_Id     = 0,
                    deleted  = 0,
                    PicId    = Convert.ToInt32(JsonConvert.DeserializeObject <List <UploaderModel> >(Request["picId"])[0].idOfImg),
                    Name     = Request["Name"],
                    Job      = Request["Sub"],
                    Pic_Path = ""
                };

                Response.Write(logic.AddMember(model));
            }
        }