public string[] SearchPhoto(Newtonsoft.Json.Linq.JObject idUser) { string userId = HttpContext.Session.Get("userId").ToString(); string[] array = WorkWithDb.PathPhoto(userId, Convert.ToInt32(idUser["idAlbum"])).ToArray(); return(array); }
public string[] SearchPhoto([FromBody] Newtonsoft.Json.Linq.JObject idUser) { string userId = WorkWithDb.getUserId(idUser["token"].ToString()); string[] array = WorkWithDb.PathPhoto(userId, Convert.ToInt32(idUser["idAlbum"])).ToArray(); return(array); }
public string[] SearchPhoto(Newtonsoft.Json.Linq.JObject idUser) { string[] array = WorkWithDb.PathPhoto(Convert.ToInt32(idUser["idActiveUers"]), Convert.ToInt32(idUser["idAlbum"])).ToArray(); return(array); }