Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
 public string[] SearchPhoto(Newtonsoft.Json.Linq.JObject idUser)
 {
     string[] array = WorkWithDb.PathPhoto(Convert.ToInt32(idUser["idActiveUers"]), Convert.ToInt32(idUser["idAlbum"])).ToArray();
     return(array);
 }