public bool BTSMember_UpdateProfileInformation(ProfileInformation profile, string Id)
 {
     var p = new DynamicParameters();
     p.Add("FirstName", profile.FirstName);
     p.Add("LastName", profile.LastName);
     p.Add("MemberId", Id);
     p.Add("Major", profile.Major);
     p.Add("Status", profile.Status);
     profile.JoinDate = DateTime.Now;
     p.Add("JoinDate", profile.JoinDate);
     p.Add("GraduationDate", profile.GraduationDate);
     return _dbConnection.Connection.Execute("BTSMember_UpdateProfileInformation", p, commandType: CommandType.StoredProcedure) > 0;
 }
 public ActionResult InsertProfileInformation(ProfileInformation profile, string Id)
 {
     var id = User.Identity.GetUserId();
     if(ModelState.IsValid)
     {
         if (_businessTechSolutionsRepository.BTSMember_UpdateProfileInformation(profile, id))
         {
             return RedirectToAction("Index", "Member");
         }
         return View();
     }
     return View();
 }
        public ActionResult AspNetUser_Update(ApplicationUser user, ProfileInformation profile)
        {
            if(ModelState.IsValid)
            {

                if(_businessTechSolutionsRepository.AspNetUser_Update(user))
                {
                    var Id = user.Id;
                    _businessTechSolutionsRepository.BTSMember_InsertMemberId(profile, Id);
                    return RedirectToAction("Index", "AdminPage");
                }
            }
            return View();
        }
 public bool BTSMember_InsertMemberId(ProfileInformation profile, string Id)
 {
     var p = new DynamicParameters();
     p.Add("MemberId", Id);
     return _dbConnection.Connection.Execute("BTSMember_InsertMemberId", p, commandType: CommandType.StoredProcedure) > 0;
 }