Example #1
0
        public dynamic GetGender()
        {
            var GenderList = _DbContext.Genders.ToList();

            var Gender = new AspNetUsersProfileViewModel
            {
                Genders = GenderList
            };

            return(Gender);
        }
Example #2
0
        public dynamic GetProfile()
        {
            var userId      = User.Identity.GetUserId();
            var ProfileList = _DbContext.AspNetUsersProfiles.Find(userId);

            var md = new AspNetUsersProfileViewModel
            {
            };

            return(ProfileList);
        }