コード例 #1
0
 public void PhotoDelete(Newtonsoft.Json.Linq.JObject photo)
 {
     WorkWithDb.DeletePhoto(photo["nameImg"].ToString(), Convert.ToInt32(photo["idAlbum"]));
 }
コード例 #2
0
        public void PhotoDelete(Newtonsoft.Json.Linq.JObject photo)
        {
            string userId = HttpContext.Session.Get("userId").ToString();

            WorkWithDb.DeletePhoto(photo["nameImg"].ToString(), Convert.ToInt32(photo["idAlbum"]), userId);
        }
コード例 #3
0
        public void PhotoDelete([FromBody] Newtonsoft.Json.Linq.JObject photo)
        {
            string userId = WorkWithDb.getUserId(photo["token"].ToString());

            WorkWithDb.DeletePhoto(photo["nameImg"].ToString(), Convert.ToInt32(photo["idAlbum"]), userId);
        }