public ActionResult PostChangePW(ChangePasswordViewModel cpvm)
        {

            var obj = GetCurrentAccount();
            Account o = AccountDAO.Current.Query(x => x.Username ==obj.Username).FirstOrDefault();
          
                    if (cpvm.Password.Equals(o.Password))
                    {
                        o.Password = cpvm.NewPassword;
                        AccountBLO.Current.AddOrUpdate(o);
                        return RedirectToAction("ViewProfile",new {username = obj.Username, Message ="Your password was changed!"});
                    }
                    else
                    {
                                     
                        return RedirectToAction("GetChangePW",new {FailMessage = "Old password wrong!!!" });
                    }     
            
        }
 public ActionResult GetChangePW(string FailMessage)
 {
     var data = new ChangePasswordViewModel();
     data.UserLogin = GetCurrentUserName();
     data.FailMessage = FailMessage;
     return View("ChangePassword",data);
 }