示例#1
0
        public async Task <ResponseBasic> ChangePassword(CambioPasswordDTO model)
        {
            ResponseBasic response = new ResponseBasic();

            response.Errors   = this.VerifiedErrors(await UserManager.ChangePasswordAsync(model.UserId, model.OldPassword, model.NewPassword));
            response.Mensagge = (response.Errors.Count > 0) ? "Error Al Cambiar La Contraseña" : "La Contraseña Fue Actualizada";
            return(response);
        }
示例#2
0
 public async Task <IHttpActionResult> ChangePassword(CambioPasswordDTO model)
 {
     return(Ok(await new AccountsBLL(Request).ChangePassword(model)));
 }