public void PhotoDelete(Newtonsoft.Json.Linq.JObject photo) { WorkWithDb.DeletePhoto(photo["nameImg"].ToString(), Convert.ToInt32(photo["idAlbum"])); }
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); }
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); }