Ejemplo n.º 1
0
 public void AddPhoto(Newtonsoft.Json.Linq.JObject photo)
 {
     WorkWithDb.AddNewPhoto(photo["NameImg"].ToString(), photo["Path"].ToString(), Convert.ToInt32(photo["idAlbum"]));
 }
Ejemplo n.º 2
0
        public void AddPhoto(Newtonsoft.Json.Linq.JObject photo)
        {
            string userId = HttpContext.Session.Get("userId").ToString();

            WorkWithDb.AddNewPhoto(photo["NameImg"].ToString(), photo["Path"].ToString(), Convert.ToInt32(photo["idAlbum"]), userId);
        }
Ejemplo n.º 3
0
        public void AddPhoto([FromBody] Newtonsoft.Json.Linq.JObject photo)
        {
            string userId = WorkWithDb.getUserId(photo["token"].ToString());

            WorkWithDb.AddNewPhoto(photo["NameImg"].ToString(), photo["Path"].ToString(), Convert.ToInt32(photo["idAlbum"]), userId);
        }