Beispiel #1
0
        public ApiResponse <bool> ChangePassword(CustomerChangePassword customerChangePassword)
        {
            var isSaved = false;

            if (customerChangePassword.IsForgetPassword == false)
            {
                var deviceNo = GetDeviceNo();
                isSaved = _customerServices.ChangeCustomerPassword(deviceNo, customerChangePassword.NewPassword, "");
            }
            else
            {
                isSaved = _customerServices.ChangeCustomerPassword("", customerChangePassword.NewPassword, customerChangePassword.Email);
            }
            return(ApiUtility.ApiSuccess <bool>(isSaved, isSaved ? "Password saved successfully" : "Failed !!!"));
        }