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); }
public async Task <IHttpActionResult> ChangePassword(CambioPasswordDTO model) { return(Ok(await new AccountsBLL(Request).ChangePassword(model))); }