public ActionResult SaveDetail(UserLogin data) { Guid g; g = Guid.NewGuid(); data.SALT = g.ToString(); var temp = FunctionUtility.GetMd5Hash(data.PASSWORD); var newpass = FunctionUtility.GetMd5Hash(data.PASSWORD + data.SALT); data.PASSWORD = newpass; //_memberSrv.UpdateDetail(data); var tempDate = _memberSrv.SaveDetail(data); return(Json(new { returnData = tempDate, jsData = _memberSrv.GetAllDetail() })); }