public ActionResult IsActive(Guid id)
        {
            IsActivatededByAdmin isActivatededByAdmin = new IsActivatededByAdmin();
            var objUserRegistration = db.UserRegistrations.FirstOrDefault(s => s.UserId == id);

            {
                isActivatededByAdmin.IsActivated = objUserRegistration.IsActive;
                isActivatededByAdmin.Email       = objUserRegistration.Email;
            }

            return(View(isActivatededByAdmin));
        }
        public ActionResult IsActive(IsActivatededByAdmin isActivatededByAdmin)
        {
            try
            {
                var objUserRegistration = db.UserRegistrations.Where(val => val.Email == isActivatededByAdmin.Email).SingleOrDefault();
                if (objUserRegistration != null)
                {
                    objUserRegistration.IsActive = isActivatededByAdmin.IsActivated;
                    db.SaveChanges();
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Exception source: {0}", ex.Message);
            }

            return(RedirectToAction("Index"));
        }