public string GetData(object UserId,string youtubeId ) { string ret = string.Empty; try { Guid userId = (Guid)UserId; YoutubeAccount ObjYoutubeAccount = new YoutubeAccount(); Api.YoutubeAccount.YoutubeAccount ApiObjYoutubeAccount = new Api.YoutubeAccount.YoutubeAccount(); List<Domain.Myfashion.Domain.YoutubeAccount> LstYoutubeAccount = (List<Domain.Myfashion.Domain.YoutubeAccount>)(new JavaScriptSerializer().Deserialize(ApiObjYoutubeAccount.GetAllYoutubeAccountDetailsById(userId.ToString()), typeof(List<Domain.Myfashion.Domain.YoutubeAccount>))); List<YoutubeAccount> lstYoutubeAccount = new List<YoutubeAccount>(); foreach (YoutubeAccount Lstitem in LstYoutubeAccount) { try { Api.Youtube.Youtube ApiObjYoutube = new Api.Youtube.Youtube(); ret = ApiObjYoutube.getYoutubeData(Lstitem.UserId.ToString(), Lstitem.Ytuserid); } catch (Exception ex) { Console.WriteLine(ex.Message); } } } catch (Exception ex) { Console.WriteLine(ex.Message); } return ret; }
public string GetData(object UserId, string youtubeId) { string ret = string.Empty; try { Guid userId = (Guid)UserId; YoutubeAccount ObjYoutubeAccount = new YoutubeAccount(); Api.YoutubeAccount.YoutubeAccount ApiObjYoutubeAccount = new Api.YoutubeAccount.YoutubeAccount(); List <Domain.Myfashion.Domain.YoutubeAccount> LstYoutubeAccount = (List <Domain.Myfashion.Domain.YoutubeAccount>)(new JavaScriptSerializer().Deserialize(ApiObjYoutubeAccount.GetAllYoutubeAccountDetailsById(userId.ToString()), typeof(List <Domain.Myfashion.Domain.YoutubeAccount>))); List <YoutubeAccount> lstYoutubeAccount = new List <YoutubeAccount>(); foreach (YoutubeAccount Lstitem in LstYoutubeAccount) { try { Api.Youtube.Youtube ApiObjYoutube = new Api.Youtube.Youtube(); ret = ApiObjYoutube.getYoutubeData(Lstitem.UserId.ToString(), Lstitem.Ytuserid); } catch (Exception ex) { Console.WriteLine(ex.Message); } } } catch (Exception ex) { Console.WriteLine(ex.Message); } return(ret); }
public string GetData(object UserId,string youtubeId ) { string ret = string.Empty; Guid userId = (Guid)UserId; YoutubeAccount ObjYoutubeAccount = new YoutubeAccount(); Api.YoutubeAccount.YoutubeAccount ApiObjYoutubeAccount = new Api.YoutubeAccount.YoutubeAccount(); List<Domain.Socioboard.Domain.YoutubeAccount> LstYoutubeAccount = (List<Domain.Socioboard.Domain.YoutubeAccount>)(new JavaScriptSerializer().Deserialize(ApiObjYoutubeAccount.GetAllYoutubeAccountDetailsById(userId.ToString()), typeof(List<Domain.Socioboard.Domain.YoutubeAccount>))); List<YoutubeAccount> lstYoutubeAccount = new List<YoutubeAccount>(); foreach (YoutubeAccount Lstitem in LstYoutubeAccount) { Api.Youtube.Youtube ApiObjYoutube = new Api.Youtube.Youtube(); ret= ApiObjYoutube.getYoutubeData(Lstitem.UserId.ToString(), Lstitem.Ytuserid); } return ret; }
public string GetData(object UserId, string youtubeId) { string ret = string.Empty; Guid userId = (Guid)UserId; YoutubeAccount ObjYoutubeAccount = new YoutubeAccount(); Api.YoutubeAccount.YoutubeAccount ApiObjYoutubeAccount = new Api.YoutubeAccount.YoutubeAccount(); List <Domain.Socioboard.Domain.YoutubeAccount> LstYoutubeAccount = (List <Domain.Socioboard.Domain.YoutubeAccount>)(new JavaScriptSerializer().Deserialize(ApiObjYoutubeAccount.GetAllYoutubeAccountDetailsById(userId.ToString()), typeof(List <Domain.Socioboard.Domain.YoutubeAccount>))); List <YoutubeAccount> lstYoutubeAccount = new List <YoutubeAccount>(); foreach (YoutubeAccount Lstitem in LstYoutubeAccount) { Api.Youtube.Youtube ApiObjYoutube = new Api.Youtube.Youtube(); ret = ApiObjYoutube.getYoutubeData(Lstitem.UserId.ToString(), Lstitem.Ytuserid); } return(ret); }