Ejemplo n.º 1
0
        // Artist management
        // GET: /Account/ManageArtist
        public PartialViewResult ArtistDetails()
        {
            var TrmWcfWebServiceJson = new WebService.WCFWebServiceJson();
            var artist = TrmWcfWebServiceJson.GetArtist(WebSecurity.CurrentUserId);
            var countyCity = TrmWcfWebServiceJson.GetAllCountyCities();

            ViewBag.Counties = countyCity.Select(x => x.County).ToList();
            ViewBag.Cities = countyCity.Select(x => x.City).ToList();

            var artistRegisterModel = new ManageArtistModel
            {
                ArtistName = artist.ArtistName,
                Email = artist.Email,
                Facebook = artist.Facebook,
                GenreCollection = artist.GenreCollection,
                MySpace = artist.MySpace,
                ProfileImagePath = artist.ProfileImage,
                SoundCloud = artist.SoundCloud,
                Twitter = artist.Twitter,
                Website = artist.Website,
                PRS = artist.PRS,
                CreativeCommonsLicence = artist.CreativeCommonsLicence,
                Bio = artist.Bio,
                CountyCityId = artist.CountyCityId
            };

            return PartialView(artistRegisterModel);
        }